Escaping quotation marks in PHP

后端 未结 7 2045
醉梦人生
醉梦人生 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~

    0 讨论(0)
提交回复
热议问题