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 -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -