: How can I display HTML tags in the strings sent by php to the front-end normally? Problem Description: how can I display HTML tags in the strings sent by php to the front-end normally? How to obtain the string "500500" from the php backend: Use the htmlspecialchars method for processing. For details, see php.netmanualhfunction.html specialchars. description: how can I display HTML tags in the strings sent by php to the front-end?
Obtain the string "500" from the php backend <=1000”,到前端显示为500,查看源代码为:< p><=1000”,到前端显示为500,查看源代码为:<>
"500 <=1000< td=""><=1000<>"
Solution: Use the htmlspecialchars method for processing.
See: http://php.net/manual/zh/function.htmlspecialchars.php
The preceding section describes how to display HTML tags in the strings sent by php to the front-end, including the relevant content. it is helpful to anyone interested in PHP tutorials.