org.exoplatform.social.common.xmlprocessor.filters
Class DOMLineBreakerFilterPlugin

java.lang.Object
  extended by org.exoplatform.container.component.BaseComponentPlugin
      extended by org.exoplatform.social.common.xmlprocessor.BaseXMLFilterPlugin
          extended by org.exoplatform.social.common.xmlprocessor.filters.DOMLineBreakerFilterPlugin
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin, Filter

public class DOMLineBreakerFilterPlugin
extends BaseXMLFilterPlugin

This filter checks if DOM tree Content contain native line-break character and replace it with <br /> tags.

Since:
1.2.1
Author:
Ly Minh Phuong - http://phuonglm.net

Field Summary
 
Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name
 
Constructor Summary
DOMLineBreakerFilterPlugin()
           
 
Method Summary
 Object doFilter(Object input)
          Filters any new line characters by new line html tag (<br>).
 
Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMLineBreakerFilterPlugin

public DOMLineBreakerFilterPlugin()
Method Detail

doFilter

public Object doFilter(Object input)
Filters any new line characters by new line html tag (<br>).

Parameters:
input - the input data
Returns:
the filtered input


Copyright © 2013 eXo Platform SAS. All Rights Reserved.