HTML,PHP - Escape '<' and '>' symbols while echoing

后端 未结 8 1917
旧巷少年郎
旧巷少年郎 2020-12-02 00:15

I want to print following text as it is:

echo \"

But it is just showing \'AAAAA\' as output.

How can I esca

8条回答
  •  无人及你
    2020-12-02 00:32

    You should escape your especial characters for HTML.

    echo "<label> AAAA"

    http://www.w3schools.com/tags/ref_entities.asp

提交回复
热议问题