public class NonSanitizedTag extends AbstractTagProcessor
Constructor and Description |
---|
NonSanitizedTag() |
Modifier and Type | Method and Description |
---|---|
List<Element> |
content(WorkerContext ctx, Tag tag, String content)
This method is called if there is text content encountered between the opening and closing tags this TagProcessor is mapped to.
|
List<Element> |
end(WorkerContext ctx, Tag tag, List<Element> currentContent)
Classes extending AbstractTagProcessor should override this method for actions that should be done in TagProcessor.endElement(WorkerContext, Tag, List) .
|
createParagraph, currentContentToParagraph, currentContentToParagraph, doRtlIndentCorrections, endElement, getCssAppliers, getCSSResolver, getHtmlPipelineContext, getRunDirection, invertTextAlignForParagraph, invertTextAlignForParagraph, isStackOwner, setCssAppliers, start, startElement, textContent, updateParagraphFontIfNeeded
public List<Element> content(WorkerContext ctx, Tag tag, String content)
TagProcessor
content
in interface TagProcessor
content
in class AbstractTagProcessor
ctx
- the WorkerContext
tag
- the tag encountered
content
- the text content between the tags this TagProcessor is mapped to.
public List<Element> end(WorkerContext ctx, Tag tag, List<Element> currentContent)
AbstractTagProcessor
TagProcessor.endElement(WorkerContext, Tag, List)
. The AbstractTagProcessor.endElement(WorkerContext, Tag, List)
calls this method after or before doing certain stuff, (see it's description).
end
in class AbstractTagProcessor
ctx
- the WorkerContext
tag
- the tag
currentContent
- the content created from e.g. inner tags, inner content and not yet added to document.
Copyright © 1998–2017. All rights reserved.