Use htmlspecialchars to escape articles in the database Summary of pitfalls
A small note: use the htmlspecialchars_decode() function to restore escaped characters to HTML tags $str = '<p><span style=";font-family:Microsoft Yahei;font-size:16px"&…