PDO prepared statements to store html content

前端 未结 2 771
被撕碎了的回忆
被撕碎了的回忆 2021-01-15 08:29

I\'m looking for a way to handle HTML content within prepared statements.

My application provides a basic WYSIWYG Editor and after the user is saving the content my

2条回答
  •  情深已故
    2021-01-15 08:51

    have you tried to store the data encoded?

    http://php.net/base64_encode

    or http://php.net/serialize

    should work if used before / after the db is used

提交回复
热议问题