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

Popular posts from this blog

1111. appearing after print sequence - php -

node.js - Express and Redis - If session exists for this user, don't allow access -

excel - I can't get the attachement of the email PHP -