Package com.itextpdf.tool.xml.html
Class HTMLUtils
java.lang.Object
com.itextpdf.tool.xml.html.HTMLUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsanitizeInline
(String str, boolean preserveWhiteSpace) Sanitize the String for use in in-line tags.sanitizeInline
(String str, boolean preserveWhiteSpace, boolean replaceNonBreakableSpaces)
-
Constructor Details
-
HTMLUtils
public HTMLUtils()
-
-
Method Details
-
sanitize
private static List<Chunk> sanitize(String str, boolean preserveWhiteSpace, boolean replaceNonBreakableSpaces) - Parameters:
str
- the string to sanitizepreserveWhiteSpace
- to trim or not to trim- Returns:
- sanitized string
-
sanitize
-
sanitizeInline
Sanitize the String for use in in-line tags.- Parameters:
str
- the string to sanitize- Returns:
- a sanitized String for use in in-line tags
-
sanitizeInline
-