Rails - How to Convert HTML to TEXT -


i'm looking way convert html text. tried using sanatize strip out html tags fails html has tags like:

<pre>adasdadadad</pre>  

which text output sanatize removes tag , text lost.

ideas?

i think looking strip_tags.

that links says deprecated this says works rails 3.

or paul correctly points out might try updated api.


Comments

Popular posts from this blog

razor - Is this a bug in WebMatrix PageData? -

iphone - Requiring the presence of a method in an id -

xslt - Is it possible to select a node that just includes a subset of the child nodes? -