Class OpenLinkNewTabFilterPlugin
- java.lang.Object
-
- org.exoplatform.container.component.BaseComponentPlugin
-
- org.exoplatform.social.common.xmlprocessor.BaseXMLFilterPlugin
-
- org.exoplatform.social.common.xmlprocessor.filters.OpenLinkNewTabFilterPlugin
-
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin,Filter
public class OpenLinkNewTabFilterPlugin extends BaseXMLFilterPlugin
This OpenLinkNewTabFilterPlugin is a plugin for XMLProcessor which will force all links have to be open in new tab. It will set attribute target="_blank" if this attribute is omitted or had other value. For example: <a href="http://abc.com">abc</a> => <a href="http://abc.com" target="_blank">abc</a> <a href="http://abc.com" target="frame_name">abc</a> => <a href="http://abc.com" target="_blank">abc</a>- Author:
- Tuyen Nguyen The.
-
-
Constructor Summary
Constructors Constructor Description OpenLinkNewTabFilterPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectdoFilter(Object input)Filters the input data.
-
-
-
Field Detail
-
TARGET
public static final String TARGET
- See Also:
- Constant Field Values
-
-