Class 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 Detail

      • OpenLinkNewTabFilterPlugin

        public OpenLinkNewTabFilterPlugin()
    • Method Detail

      • doFilter

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