<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_35199"> php防御XSS攻击,使用方法和详情看 http://www.tongqiong.com/read.php?tid-474.html <div class="blockcode"><div id="code_dOP"><ol> <li>function remove_xss($val) {</li> <li> // remove all non-printable characters. CR(0a) and LF(0b) and TAB(9) are allowed</li> <li> // this prevents some character re-spacing such as <java></java> </li> </ol></div></div> </td></tr></table>