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 sanitizer,我正在使用下面的这个 HTML 片段进行测试。在此示例中,它截断并删除了 Jackson 和 94,但保留了其他所有内容。有没有办法清理并有意保留我想在前端显示的内容?
HTML 片段示例