在 jquery-pajax 中注入 HTML 内容之前如何进行安全消毒?

作者: karthickvTR创建于 2025年5月22日更新于 2025年8月21日

fire('pjax:beforeReplace', [container.contents, options], { state: pjax.state, previousState: previousState }) context.html(container.contents)

内容来源: defunkt/jquery-pjax