Hitesh Ghuge
Hitesh Ghuge

Reputation: 823

AntiSamy adds new line character "\n"

After cleaning the dirty input , Antisamy prepends new line character "\n" and replaces " " space with "\n". I am using antisamy 1.5.3 jar.

For e.g.: below is the output after cleaning json

"\n{\"instanceId\":\"54117\",\"chatTime\":\"11:30\nAM\"}

here

11:30\nAM..this was 11:30 AM

Upvotes: 1

Views: 889

Answers (1)

Hitesh Ghuge
Hitesh Ghuge

Reputation: 823

It worked after modifying formatOutput to false and adding preserveSpace to true in policy file

Upvotes: 4

Related Questions