A client’s web host recently changed servers on them and it’s broken some of the administrative tools. I’m providing a YUI WYSIWYG editor for them to create content on the site. The HTML content is now being “cleaned” by something before I get to it. For example, a link tag like
<a href="http://www.stackoverflow.com">
gets turned into
<a href=\">
Does this sound like a PHP server setting? If so, which one and can I control it via a php.ini file?
Make sure to set
magic_quotes_gpc = Offin the php.ini file on that host. That will keep PHP from adding slashes to the HTML chars <, >, “, and ‘. As for the inner link URL disappearing – that must be from the JS editor or from a custom PHP filter in the system. PHP it’s self doesn’t filter content (other than adding slashes).