摘要:<?php$str = "This is some <b>bold</b> text.";$str = "This is some <b>bold</b> text.";$str = "This is some <b>bold</b> text.";$str =
<?php
$str = "This is some <b>bold</b> text.";
$str = "This is some <b>bold</b> text.";
$str = "This is some <b>bold</b> text.";
$str = "你好 世界 <b>bold</b> text.";
echo htmlspecialchars($str);
批改老師:天蓬老師批改時(shí)間:2019-06-29 13:07:57
老師總結(jié):htmlspecialchars()其實(shí)還有一個(gè)類(lèi)似的函數(shù), 可以比它解析更多的特殊字符, 抽空了解一下