Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设 PHP 中的模板代码是
<div> <? echo htmlentities($unfiltered_text, ENT_QUOTES, "UTF-8"); </div>
下面的代码安全ALL possible XSS吗?
ALL possible XSS
不是,你能举个例子吗?谢谢。
是的,htmlentities 将转换所有在 HTML 中具有特殊含义的字符。