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

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -