com.itextpdf.tool.xml.html
Class HTMLUtils

java.lang.Object
  extended by com.itextpdf.tool.xml.html.HTMLUtils

public class HTMLUtils
extends Object

Author:
redlab_b

Constructor Summary
HTMLUtils()
           
 
Method Summary
static String sanitize(String str)
          Sanitize the String for use in tags that must trim leading and trailing white space.
static String sanitize(String str, boolean trim)
           
static String sanitizeInline(String str)
          Sanitize the String for use in in-line tags.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLUtils

public HTMLUtils()
Method Detail

sanitize

public static String sanitize(String str,
                              boolean trim)
Parameters:
str - the string to sanitize
trim - 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.