Re: possible issue with quotes (Magicquotes feature)?
| From: | Ashley Sheridan | Date: | Thu, 19 Aug 2010 15:30:45 +0000 |
| Subject: | Re: possible issue with quotes (Magicquotes feature)? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-307569@lists.php.net to get a copy of this message | ||
On Thu, 2010-08-19 at 11:24 -0400, Marc Guay wrote:
> I would chalk this up to that fancy, extra-curly, apostrophe that you
> get when copying and pasting text from Microsoft Word or similar.
> Marc
>
The characters Microsoft software introduces don't play nice with
non-Microsoft software, and cause a lot of problems like this for
web-based systems. If it helps, I wrote a small function to replace the
'bad' characters with the correct ones:
http://ashleysheridan.co.uk/coding/php/Remove_Rubbish_Microsoft_Markup
It can also remove the extra meta info stuff that seems to get thrown in
when you copy large amounts of text into a rich-text editor, as this
often breaks the display of content in non-MS browsers, although that is
a little experimental at the moment, as I've not really had the time to
test it exhaustively.
Thanks,
Ash
http://www.ashleysheridan.co.uk