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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -