I am sorrrrrry, but I am banging my head against this, and can’t seem to
find the answer!
Text gets displayed in an input field in a web page with “
prepended and ” appended to the string (needs to be inside the
string otherwise it looks funny). The user edits it, and when it comes
back to the (Rails) backend, the new string with (possibly) these quotes
attached comes back, but in unicode.
So the string possibly starts with UTF “ and possibly ends with
I want to do a regexp removal. Here is what works (but I am embarrased):
ldquo = ‘123’; ldquo = 226; ldquo = 128; ldquo = 156
rdquo = ‘123’; rdquo = 226; rdquo = 128; rdquo = 157
There must be a better way.
Abu Mats al-Nemsi