I have this
self.description.gsub! 'iframe', 'iframe id="myid" '
And it outputs this when I save:
iframe id=\"myid\"
But I don't want the backslashes \ before each "
How do I do this?
How do I allow 2 x " inside?
I have this
self.description.gsub! 'iframe', 'iframe id="myid" '
And it outputs this when I save:
iframe id=\"myid\"
But I don't want the backslashes \ before each "
How do I do this?
How do I allow 2 x " inside?
Copyright © 2021 Jogjafile Inc.
I don't know if you are running it inside IRB, but sometimes you have to print to see how the string looks like:
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.