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.
我在 JAVA 项目中使用 OWASP AntiSamy,但每次我尝试使用包含 \n 字符的字符串调用方法 getCleanHTML() 时,该方法都会替换为 espace“”。我已经尝试更改 XML 文件中的规则,但它仍在发生。我如何解决它?
我已经解决了插入行的问题
<directive name="preserveSpace" value="true" />
在配置文件中