Class HtmlSerializer

java.lang.Object
org.htmlcleaner.Serializer
org.htmlcleaner.HtmlSerializer
Direct Known Subclasses:
CompactHtmlSerializer, PrettyHtmlSerializer, SimpleHtmlSerializer

public abstract class HtmlSerializer extends Serializer

Abstract HTML serializer - contains common logic for descendants.

  • Constructor Details

  • Method Details

    • isMinimizedTagSyntax

      protected boolean isMinimizedTagSyntax(TagNode tagNode)
    • dontEscape

      protected boolean dontEscape(TagNode tagNode)
    • escapeText

      protected String escapeText(String content)
    • serializeOpenTag

      protected void serializeOpenTag(TagNode tagNode, Writer writer, boolean newLine) throws IOException
      Throws:
      IOException
    • serializeEndTag

      protected void serializeEndTag(TagNode tagNode, Writer writer, boolean newLine) throws IOException
      Throws:
      IOException