Verify yourself to prove that you are not a ROBOT! After verification the page will apear. Thanks for understanding.
I have this
self.description.gsub! 'iframe', 'iframe id="myid" '
And it outputs this when I save:
But I don't want the backslashes \ before each "
How do I do this?
How do I allow 2 x " inside?
I don't know if you are running it inside IRB, but sometimes you have to print to see how the string looks like:
2.3.0 :001 > str = "frame"
2.3.0 :002 > str.gsub('frame','iframe id="myid"')
=> "iframe id=\"myid\""
2.3.0 :003 > puts str.gsub('frame','iframe id="myid"')
Note that the returned value of gsub is escaping double quotes but that's because the whole string is wrapped by double quotes, the value printed is different though.