php 输出htm标签,方便查看生成的html代码

string htmlspecialchars ( string string [, int quote_style [, string charset [, bool double_encode]]] )
示例:

$new = htmlspecialchars("<a href='test'>Test</a>");
echo $new;

你可能感兴趣的:(php 输出htm标签,方便查看生成的html代码)