Class SanitizeFilterPlugin

  • All Implemented Interfaces:
    org.exoplatform.container.component.ComponentPlugin, Filter

    public class SanitizeFilterPlugin
    extends BaseXMLFilterPlugin
    The filter escapes all the DOMTree to make sure it cleaned. Note: this filter cannot detect that content escaped or not so make sure that you don't use it twice or using it with escaped content.
    Author:
    Ly Minh Phuong - http://phuonglm.net
    • Constructor Detail

      • SanitizeFilterPlugin

        public SanitizeFilterPlugin()
    • Method Detail

      • doFilter

        public Object doFilter​(Object input)
        Filters the input data.
        Parameters:
        input - the input data
        Returns:
        an Object with the result after filtered