万千封印
编码$new = htmlspecialchars("<a href='test'>Test</a>", ENT_QUOTES);echo $new; // <a href='test'>Test</a>解码$str = '<p>this -> "</p>';echo htmlspecialchars_decode($str);// note that here the quotes aren't convertedecho htmlspecialchars_decode($str, ENT_NOQUOTES);