I've only written four Web applications and even then under severe time constraints (which isn't very condusive to tidy code or indepth research), but in at least three of those applications I've encountered the same problem and haven't found a satisfactory solution. The problem is that TEXTAREA fields that contain an apostrophe (´) are truncated or completely obliterated upon submission.
So I guess the question is how should this situation be handled such that the apostrophes are preserved? The last application I wrote intercepted the submission via "onsubmit=" to a js sub, escaped the original TEXTAREA to a hiddent TEXTAREA field and then submitted the form.
It doesn't seem efficient to submit two TEXTAREA fields for each one on a given form. Nor does it seem efficient to create a shadowed hidden form and then submit only the hidden form data. There must be something obvious that I'm overlooking. I doubt that there is a Perl solution since the unescaped field never makes it (intact) to the Perl program once submitted.
Thanks for any advice. If someone could point me in the right direction (code is not necessary but welcome).
--Jim
In reply to (OT) TEXTAREA and the Single Quote by jlongino
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |