Liferay 6.0.5

com.liferay.portal.kernel.util
Class HtmlUtil

java.lang.Object
  extended by com.liferay.portal.kernel.util.HtmlUtil

public class HtmlUtil
extends Object


Constructor Summary
HtmlUtil()
           
 
Method Summary
static String escape(String html)
           
static String escape(String html, int mode)
           
static String escapeAttribute(String attribute)
           
static String escapeCSS(String css)
           
static String escapeHREF(String href)
           
static String escapeJS(String js)
           
static String escapeURL(String url)
           
static String extractText(String html)
           
static String fromInputSafe(String html)
           
static Html getHtml()
           
static String replaceMsWordCharacters(String html)
           
 void setHtml(Html html)
           
static String stripBetween(String html, String tag)
           
static String stripComments(String html)
           
static String stripHtml(String html)
           
static String toInputSafe(String html)
           
static String unescape(String html)
           
static String wordBreak(String html, int columns)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlUtil

public HtmlUtil()
Method Detail

escape

public static String escape(String html)

escape

public static String escape(String html,
                            int mode)

escapeAttribute

public static String escapeAttribute(String attribute)

escapeCSS

public static String escapeCSS(String css)

escapeHREF

public static String escapeHREF(String href)

escapeJS

public static String escapeJS(String js)

escapeURL

public static String escapeURL(String url)

extractText

public static String extractText(String html)

fromInputSafe

public static String fromInputSafe(String html)

getHtml

public static Html getHtml()

replaceMsWordCharacters

public static String replaceMsWordCharacters(String html)

stripBetween

public static String stripBetween(String html,
                                  String tag)

stripComments

public static String stripComments(String html)

stripHtml

public static String stripHtml(String html)

toInputSafe

public static String toInputSafe(String html)

unescape

public static String unescape(String html)

wordBreak

public static String wordBreak(String html,
                               int columns)

setHtml

public void setHtml(Html html)

Liferay 6.0.5