com.itextpdf.tool.xml.html
Class HTMLUtils
java.lang.Object
com.itextpdf.tool.xml.html.HTMLUtils
public class HTMLUtils
- extends Object
- Author:
- redlab_b
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTMLUtils
public HTMLUtils()
sanitize
public static String sanitize(String str,
boolean trim)
- Parameters:
str
- the string to sanitizetrim
- to trim or not to trim
- Returns:
- sanitized string
sanitize
public static String sanitize(String str)
- Sanitize the String for use in tags that must trim leading and trailing white space.
- Parameters:
str
- the string to sanitize
- Returns:
- a sanitized String
sanitizeInline
public static String sanitizeInline(String str)
- 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
Copyright © 2012. All Rights Reserved.