|
|||||||||
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 java.lang.Object[][] |
getEntitiesTable()
Get the html entities translation table. |
static java.lang.String |
htmlAmpersand(java.lang.String str)
Replace & characters with & HTML entities. |
static java.lang.String |
htmlAngleBrackets(java.lang.String str)
Replace < > characters with < > entities. |
static java.lang.String |
htmlDoubleQuotes(java.lang.String str)
Replace double quotes characters with HTML entities. |
static java.lang.String |
htmlentities(java.lang.String str)
Convert special and extended characters into HTML entitities. |
static java.lang.String |
htmlQuotes(java.lang.String str)
Replace single and double quotes characters with HTML entities. |
static java.lang.String |
htmlSingleQuotes(java.lang.String str)
Replace single quotes characters with HTML entities. |
static java.lang.String |
unhtmlAmpersand(java.lang.String str)
Replace & HTML entities with & characters. |
static java.lang.String |
unhtmlAngleBrackets(java.lang.String str)
Replace < > entities with < > characters. |
static java.lang.String |
unhtmlDoubleQuotes(java.lang.String str)
Replace single quotes HTML entities with equivalent character. |
static java.lang.String |
unhtmlentities(java.lang.String str)
Convert HTML entities to special and extended unicode characters equivalents. |
static java.lang.String |
unhtmlQuotes(java.lang.String str)
Replace single and double quotes HTML entities with equivalent characters. |
static java.lang.String |
unhtmlSingleQuotes(java.lang.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 java.lang.Object[][] getEntitiesTable()
public static java.lang.String htmlentities(java.lang.String str)
str
- input string
unhtmlentities(String)
public static java.lang.String unhtmlentities(java.lang.String str)
str
- input string
htmlentities(String)
public static java.lang.String htmlSingleQuotes(java.lang.String str)
str
- the input string
public static java.lang.String unhtmlSingleQuotes(java.lang.String str)
str
- the input string
public static java.lang.String htmlDoubleQuotes(java.lang.String str)
str
- the input string
public static java.lang.String unhtmlDoubleQuotes(java.lang.String str)
str
- the input string
public static java.lang.String htmlQuotes(java.lang.String str)
str
- the input string
public static java.lang.String unhtmlQuotes(java.lang.String str)
str
- the input string
public static java.lang.String htmlAngleBrackets(java.lang.String str)
str
- the input string
public static java.lang.String unhtmlAngleBrackets(java.lang.String str)
str
- the input string
public static java.lang.String htmlAmpersand(java.lang.String str)
str
- the input string
public static java.lang.String unhtmlAmpersand(java.lang.String str)
str
- the input string
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |