|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.util.HtmlUtil
@StableMinor(version="4.1", sinceVersion="4.0") public abstract class HtmlUtil
Utility class for HTML decoding
Constructor Summary | |
---|---|
HtmlUtil()
|
Method Summary | |
---|---|
static String |
decode(String inputHtml)
Decodes a HTML string, replacing character references (&...;) by their corresponding characters. |
static String |
encode(String inputHtml)
Encodes a HTML string, replacing extended characters by their corresponding character references. |
static String |
encode(String inputHtml,
boolean useEntityRefs)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HtmlUtil()
Method Detail |
---|
public static String decode(String inputHtml)
e.g: coração -> coração
For more information about HTML character references, see the section "5.3 Character references" of the HTML 4.01 Specification
inputHtml
- input HTML
public static String encode(String inputHtml)
e.g: coração -> coração
For more information about HTML character references, see the section "5.3 Character references" of the HTML 4.01 Specification
inputHtml
- input HTML
public static String encode(String inputHtml, boolean useEntityRefs)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |