saving html content in mysql database

后端 未结 4 793
青春惊慌失措
青春惊慌失措 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:21

    When you fetch it from the database you need to run a stripslashes() on the HTML string. Right?

提交回复
热议问题