saving html content in mysql database

后端 未结 4 821
青春惊慌失措
青春惊慌失措 2021-01-07 09:33

I am using php and trying save some html contents in mysql database. the html content is generating by ckeditor. The content is something like this-



        
4条回答
  •  暖寄归人
    2021-01-07 10:30

    You hosting company probably has magic quotes turned on - http://php.net/manual/en/security.magicquotes.php

    You can't disable it in code, but Example 2 here shows a work around http://www.php.net/manual/en/security.magicquotes.disabling.php

提交回复
热议问题