Escaping quotation marks in PHP

后端 未结 7 2185
醉梦人生
醉梦人生 2020-11-21 23:49

I am getting a parse error, and I think it\'s because of the quotation marks over \"time\". How can I make it treat it as a whole string?



        
7条回答
  •  南旧
    南旧 (楼主)
    2020-11-22 00:53

    Use htmlspecialchars(). Then quote and less / greater than symbols don't break your HTML tags~

提交回复
热议问题