sanitizers in liferay


Liferay Uses Stanitizers to escape the XSS elements

In Portal-model-hints.xml for blog title
<sanitize content-type="text/plain" modes="ALL" />


In Portal.properties
sanitizer.impl=com.liferay.portal.sanitizer.DummySanitizerImpl


Following Links which explains how to use it

1.http://www.liferay.com/community/forums/-/message_boards/message/12668382

2.https://www.liferay.com/web/juan.fernandez/blog/-/blogs/sanitizers-in-liferay-6

We need antiSamy hook to deploy , to work as excepted.


Comments

  1. We read your blog , share most useful information in blog . Sanitizer Online

    ReplyDelete
  2. Replies
    1. Interesting stuff to read. Keep it up.
      Please Visit Us to know more about Baby hand sanitizer

      Delete

Post a Comment

Popular posts from this blog

Theme display in javascript

How to know which liferay version we are using

Viewing the SQL Query in liferay : debugging the SQL Query in Hibernate