Package com.itextpdf.tool.xml.html
Class HTMLUtils
- java.lang.Object
-
- com.itextpdf.tool.xml.html.HTMLUtils
-
public class HTMLUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description HTMLUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<Chunk>sanitize(java.lang.String str, boolean preserveWhiteSpace)private static java.util.List<Chunk>sanitize(java.lang.String str, boolean preserveWhiteSpace, boolean replaceNonBreakableSpaces)static java.util.List<Chunk>sanitizeInline(java.lang.String str, boolean preserveWhiteSpace)Sanitize the String for use in in-line tags.static java.util.List<Chunk>sanitizeInline(java.lang.String str, boolean preserveWhiteSpace, boolean replaceNonBreakableSpaces)
-
-
-
Method Detail
-
sanitize
private static java.util.List<Chunk> sanitize(java.lang.String str, boolean preserveWhiteSpace, boolean replaceNonBreakableSpaces)
- Parameters:
str- the string to sanitizepreserveWhiteSpace- to trim or not to trim- Returns:
- sanitized string
-
sanitize
public static java.util.List<Chunk> sanitize(java.lang.String str, boolean preserveWhiteSpace)
-
sanitizeInline
public static java.util.List<Chunk> sanitizeInline(java.lang.String str, boolean preserveWhiteSpace)
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
public static java.util.List<Chunk> sanitizeInline(java.lang.String str, boolean preserveWhiteSpace, boolean replaceNonBreakableSpaces)
-
-