OWASP AntiSamy are replacing line breaks to espaces (JAVA) -
i'm using owasp antisamy in java project everytime try call method getcleanhtml() string contains \n character, method replacing espace " ". i'm tried change rules in xml file, still happening. how fix it?
i fix issue inserting line
<directive name="preservespace" value="true" />
in configuration file
Comments
Post a Comment