php - HTMLPurifier inserts \ before quotes -
in system i'm building use ckeditor writing posts. then, when send php validate html created ckeditor htmlpurifier. problem htmlpurifier adds \ before ". example, ckeditor produces:
<span style="font-size:36px;">
and after htmlpurifier:
<span style=\"font-size:36px;\">
i'm using php 5.2. why htmlpurifier adds these backslashes , must fix it?
it's not html purifier adds slashes, php configuration. edit php.ini , disable magic_quotes_gpc.
the linked manual suggests add next setting php.ini:
magic_quotes_gpc = off
if using apache , can use .htaccess
files, create 1 with:
php_flag magic_quotes_gpc off
Comments
Post a Comment