How to unescape String in Rails

Posted by Midday on Stack Overflow See other posts from Stack Overflow or by Midday
Published on 2010-03-19T09:15:56Z Indexed on 2010/03/19 9:21 UTC
Read the original article Hit count: 300

Filed under:
|
|

I have a long String from a WYSIWYG (in my case YUI) which I then send as html email. since its an email all CSS needs to be inline so how should i unescape this:

<span style=\"color: #c00000; font-size: 14px;\">

Is .gsub '\"' , '"' enough?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about escaping