Liferay 6.2-ce-ga5

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 escapeXPath(String xPath)
           
static String escapeXPathAttribute(String xPathAttribute)
           
static String extractText(String html)
           
static String fromInputSafe(String html)
           
static String getAUICompatibleId(String html)
           
static Html getHtml()
           
static String render(String html)
           
static String replaceMsWordCharacters(String html)
          Deprecated. 
static String replaceNewLine(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 unescapeCDATA(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)

escapeXPath

public static String escapeXPath(String xPath)

escapeXPathAttribute

public static String escapeXPathAttribute(String xPathAttribute)

extractText

public static String extractText(String html)

fromInputSafe

public static String fromInputSafe(String html)

getAUICompatibleId

public static String getAUICompatibleId(String html)

getHtml

public static Html getHtml()

render

public static String render(String html)

replaceMsWordCharacters

@Deprecated
public static String replaceMsWordCharacters(String html)
Deprecated. 


replaceNewLine

public static String replaceNewLine(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)

unescapeCDATA

public static String unescapeCDATA(String html)

wordBreak

public static String wordBreak(String html,
                               int columns)

setHtml

public void setHtml(Html html)

Liferay 6.2-ce-ga5