abstrak:<?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);
Guru membetulkan:天蓬老師Masa pembetulan:2019-06-29 13:07:57
Rumusan guru:htmlspecialchars()其實(shí)還有一個類似的函數(shù), 可以比它解析更多的特殊字符, 抽空了解一下