|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.tecnick.htmlutils.htmlentities.HTMLEntities
public class HTMLEntities
Collection of static methods to convert special and extended
characters into HTML entitities and vice versa.
Copyright (c) 2004-2005 Tecnick.com S.r.l (www.tecnick.com) Via Ugo Foscolo
n.19 - 09045 Quartu Sant'Elena (CA) - ITALY - www.tecnick.com -
info@tecnick.com
Project homepage: http://htmlentities.sourceforge.net
License: http://www.gnu.org/copyleft/lesser.html LGPL
| Constructor Summary | |
|---|---|
HTMLEntities()
Initialize HTML translation maps. |
|
| Method Summary | |
|---|---|
static Object[][] |
getEntitiesTable()
Get the html entities translation table. |
static String |
htmlAmpersand(String str)
Replace & characters with & HTML entities. |
static String |
htmlAngleBrackets(String str)
Replace < > characters with < > entities. |
static String |
htmlDoubleQuotes(String str)
Replace double quotes characters with HTML entities. |
static String |
htmlentities(String str)
Convert special and extended characters into HTML entitities. |
static String |
htmlQuotes(String str)
Replace single and double quotes characters with HTML entities. |
static String |
htmlSingleQuotes(String str)
Replace single quotes characters with HTML entities. |
static String |
unhtmlAmpersand(String str)
Replace & HTML entities with & characters. |
static String |
unhtmlAngleBrackets(String str)
Replace < > entities with < > characters. |
static String |
unhtmlDoubleQuotes(String str)
Replace single quotes HTML entities with equivalent character. |
static String |
unhtmlentities(String str)
Convert HTML entities to special and extended unicode characters equivalents. |
static String |
unhtmlQuotes(String str)
Replace single and double quotes HTML entities with equivalent characters. |
static String |
unhtmlSingleQuotes(String str)
Replace single quotes HTML entities with equivalent character. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HTMLEntities()
| Method Detail |
|---|
public static Object[][] getEntitiesTable()
public static String htmlentities(String str)
str - input string
unhtmlentities(String)public static String unhtmlentities(String str)
str - input string
htmlentities(String)public static String htmlSingleQuotes(String str)
str - the input string
public static String unhtmlSingleQuotes(String str)
str - the input string
public static String htmlDoubleQuotes(String str)
str - the input string
public static String unhtmlDoubleQuotes(String str)
str - the input string
public static String htmlQuotes(String str)
str - the input string
public static String unhtmlQuotes(String str)
str - the input string
public static String htmlAngleBrackets(String str)
str - the input string
public static String unhtmlAngleBrackets(String str)
str - the input string
public static String htmlAmpersand(String str)
str - the input string
public static String unhtmlAmpersand(String str)
str - the input string
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||