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 List<Chunk> sanitize(String str, boolean preserveWhiteSpace)
           
static List<Chunk> sanitizeInline(String str, boolean preserveWhiteSpace)
          Sanitize the String for use in in-line tags.
static List<Chunk> sanitizeInline(String str, boolean preserveWhiteSpace, boolean replaceNonBreakableSpaces)
           
 
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 List<Chunk> sanitize(String str,
                                   boolean preserveWhiteSpace)

sanitizeInline

public static List<Chunk> sanitizeInline(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 List<Chunk> sanitizeInline(String str,
                                         boolean preserveWhiteSpace,
                                         boolean replaceNonBreakableSpaces)


Copyright © 2015. All Rights Reserved.