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.
"\n"清理脏输入后,Antisamy 在新行字符前面" "加上"\n". 我正在使用 antisamy 1.5.3 jar。
"\n"
" "
例如:下面是清理 json 后的输出
"\n{\"instanceId\":\"54117\",\"chatTime\":\"11:30\nAM\"}
这里
11:30\nAM..这是11:30 AM
11:30\nAM
11:30 AM
在将 formatOutput 修改为 false 并在策略文件中将 preserveSpace 添加为 true 后,它起作用了