Top "Strip" questions

"strip" refers to the process of removing (stripping) certain characters from a string.

strip() and strip(string.whitespace) give different results despite documentation suggesting they should be the same

I have a Unicode string with some non-breaking spaces at the beginning and end. I get different results when using …

python unicode whitespace strip
How can I use strip_tags in regular Ruby code (non-rails)?

I need to turn HTML into plain text. There's a nice function that does that in ActionView's SanitizeHelper, but I …

html ruby tags strip actionview
python: rstrip one exact string, respecting order

Is it possible to use the python command rstrip so that it does only remove one exact string and does …

python string strip
using awk to extract and split

i am trying to extract a substring with awk from a command answer in bash example output line: abc_def_…

string bash sed awk strip
How to Prevent Wordpress from Stripping HTML Tags in Excerpt

I am using wp_trim_words to trim some excerpts on my homepage. It's working fine except that it's stripping …

php wordpress function filter strip
How to remove whitespace from right end of NSString?

This removes white space from both ends of a string: NSString *newString = [oldString stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; How do I remove …

objective-c nsstring trim strip removing-whitespace
How to decrease the size of generated binaries?

I know that there is an option "-Os" to "Optimize for size", but it has little affect, or even increase …

linux gcc compiler-optimization strip
Removing space in dataframe python

I am getting an error in my code because I tried to make a dataframe by calling an element from …

python pandas whitespace dataframe strip
Is there a better way to use strip() on a list of strings? - python

For now i've been trying to perform strip() on a list of strings and i did this: i = 0 for j …

python string list iterator strip
How to remove HTML tags from rendered text

I am needing to remove the opening and closing <p> tags from some rendered comment text. I pass …

javascript html vue.js strip