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.
如果使用 HTML 白名单和 HTMLPurifier,如果允许,恶意用户是否可以执行任何恶作剧<a></a>?
<a></a>
对于气氛:
如果您只允许该href属性并且不允许javascript:伪协议,则不会。
href
javascript: