in reply to Trouble Getting Local Variable $_ to return reformatted string
minor nits, OT of your now-solved chief question:
First..
...because the nasty characters my customers insist on typing into their descriptions occasionally makes the HTML page break.
For example, I want to exchange a tick mark (') with (& rsquo ;) ...
You're on the money in saying "customers" sometimes insert "nasty characters." They certainly can and do and sometimes that will bork stuff... but I don't know any way a simple tick could, in your word "break" the HTML page; an ASCII "'" does NOT (in my experience) cause any issue with a browser's rendering. Perhaps this is merely incautious phrasing, but if not, I'd be interested in an example to clarify my understanding.
and, second... When posting two distinct bits of code, it would be well to enclose them in individual sets of <c>...</c> tags,
Welcome to the Monastery! Perhaps the promptitude of the excellent replies above will prompt you to get a login.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Trouble Getting Local Variable $_ to return reformatted string
by jhourcle (Prior) on Jun 18, 2007 at 15:49 UTC | |
by ww (Archbishop) on Jun 18, 2007 at 16:23 UTC |