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() を呼び出そうとするたびに、メソッドはエスケープ文字 " " に置き換えられます。既に XML ファイルのルールを変更しようとしましたが、まだ起こっています。どうすれば修正できますか?
行を挿入する問題はすでに修正しています
<directive name="preserveSpace" value="true" />
構成ファイルで