Class HtmlCleanerForAnt

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.htmlcleaner.HtmlCleanerForAnt
All Implemented Interfaces:
Cloneable

public class HtmlCleanerForAnt extends org.apache.tools.ant.Task

Support for ANT.

  • Field Details

    • text

      private String text
    • src

      private String src
    • dest

      private String dest
    • incharset

      private String incharset
    • outcharset

      private String outcharset
    • taginfofile

      private String taginfofile
    • outputtype

      private String outputtype
    • advancedxmlescape

      private boolean advancedxmlescape
    • usecdata

      private boolean usecdata
    • usecdatafor

      private String usecdatafor
    • specialentities

      private boolean specialentities
    • unicodechars

      private boolean unicodechars
    • omitunknowntags

      private boolean omitunknowntags
    • treatunknowntagsascontent

      private boolean treatunknowntagsascontent
    • omitdeprtags

      private boolean omitdeprtags
    • treatdeprtagsascontent

      private boolean treatdeprtagsascontent
    • omitcomments

      private boolean omitcomments
    • omitxmldecl

      private boolean omitxmldecl
    • omitdoctypedecl

      private boolean omitdoctypedecl
    • omithtmlenvelope

      private boolean omithtmlenvelope
    • useemptyelementtags

      private boolean useemptyelementtags
    • allowmultiwordattributes

      private boolean allowmultiwordattributes
    • allowhtmlinsideattributes

      private boolean allowhtmlinsideattributes
    • ignoreqe

      private boolean ignoreqe
    • namespacesaware

      private boolean namespacesaware
    • hyphenreplacement

      private String hyphenreplacement
    • prunetags

      private String prunetags
    • booleanatts

      private String booleanatts
    • nodebyxpath

      private String nodebyxpath
    • transform

      private String transform
    • allowInvalidAttributeNames

      private boolean allowInvalidAttributeNames
    • invalidAttributeNamePrefix

      private String invalidAttributeNamePrefix
  • Constructor Details

    • HtmlCleanerForAnt

      public HtmlCleanerForAnt()
  • Method Details

    • setText

      public void setText(String text)
    • setSrc

      public void setSrc(String src)
    • setDest

      public void setDest(String dest)
    • setIncharset

      public void setIncharset(String incharset)
    • setOutcharset

      public void setOutcharset(String outcharset)
    • setTaginfofile

      public void setTaginfofile(String taginfofile)
    • setOutputtype

      public void setOutputtype(String outputtype)
    • setAdvancedxmlescape

      public void setAdvancedxmlescape(boolean advancedxmlescape)
    • setUsecdata

      public void setUsecdata(boolean usecdata)
    • setUsecdatafor

      public void setUsecdatafor(String usecdatafor)
    • setSpecialentities

      public void setSpecialentities(boolean specialentities)
    • setUnicodechars

      public void setUnicodechars(boolean unicodechars)
    • setOmitunknowntags

      public void setOmitunknowntags(boolean omitunknowntags)
    • setTreatunknowntagsascontent

      public void setTreatunknowntagsascontent(boolean treatunknowntagsascontent)
    • setOmitdeprtags

      public void setOmitdeprtags(boolean omitdeprtags)
    • setTreatdeprtagsascontent

      public void setTreatdeprtagsascontent(boolean treatdeprtagsascontent)
    • setOmitcomments

      public void setOmitcomments(boolean omitcomments)
    • setOmitxmldecl

      public void setOmitxmldecl(boolean omitxmldecl)
    • setOmitdoctypedecl

      public void setOmitdoctypedecl(boolean omitdoctypedecl)
    • setOmithtmlenvelope

      public void setOmithtmlenvelope(boolean omithtmlenvelope)
    • setUseemptyelementtags

      public void setUseemptyelementtags(boolean useemptyelementtags)
    • setAllowmultiwordattributes

      public void setAllowmultiwordattributes(boolean allowmultiwordattributes)
    • setAllowhtmlinsideattributes

      public void setAllowhtmlinsideattributes(boolean allowhtmlinsideattributes)
    • setIgnoreqe

      public void setIgnoreqe(boolean ignoreqe)
    • setNamespacesaware

      public void setNamespacesaware(boolean namespacesaware)
    • setHyphenreplacement

      public void setHyphenreplacement(String hyphenreplacement)
    • setPrunetags

      public void setPrunetags(String prunetags)
    • setBooleanatts

      public void setBooleanatts(String booleanatts)
    • setNodebyxpath

      public void setNodebyxpath(String nodebyxpath)
    • setTransform

      public void setTransform(String transform)
    • addText

      public void addText(String text)
    • execute

      public void execute() throws org.apache.tools.ant.BuildException
      Implementation of Ant task execution.
      Overrides:
      execute in class org.apache.tools.ant.Task
      Throws:
      org.apache.tools.ant.BuildException
    • isAllowInvalidAttributeNames

      public boolean isAllowInvalidAttributeNames()
    • setAllowInvalidAttributeNames

      public void setAllowInvalidAttributeNames(boolean allowInvalidAttributeNames)
    • getInvalidAttributeNamePrefix

      public String getInvalidAttributeNamePrefix()
    • setInvalidAttributeNamePrefix

      public void setInvalidAttributeNamePrefix(String invalidAttributeNamePrefix)