public static class ExtractingDocumentLoader.MostlyPassthroughHtmlMapper extends Object implements org.apache.tika.parser.html.HtmlMapper
Modifier and Type | Field and Description |
---|---|
static org.apache.tika.parser.html.HtmlMapper |
INSTANCE |
Constructor and Description |
---|
MostlyPassthroughHtmlMapper() |
Modifier and Type | Method and Description |
---|---|
boolean |
isDiscardElement(String name)
Keep all elements and their content.
|
String |
mapSafeAttribute(String elementName,
String attributeName)
Lowercases the attribute name
|
String |
mapSafeElement(String name)
Lowercases the element name, but returns null for <BR>,
which suppresses the start-element event for lt;BR> tags.
|
public boolean isDiscardElement(String name)
isDiscardElement
in interface org.apache.tika.parser.html.HtmlMapper
public String mapSafeAttribute(String elementName, String attributeName)
mapSafeAttribute
in interface org.apache.tika.parser.html.HtmlMapper
public String mapSafeElement(String name)
mapSafeElement
in interface org.apache.tika.parser.html.HtmlMapper
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.