PHP string doesn't allow < and> characters

后端 未结 4 1611
醉话见心
醉话见心 2020-12-01 20:12

I have a string in my code as per the following example:

\';
?>

4条回答
  •  悲&欢浪女
    2020-12-01 20:42

    You need to use HTML characters to avoid it being turned into HTML.

    so:

    echo htmlspecialchars("");
    

提交回复
热议问题