Fork me on GitHub

Référence de la classe HTMLEntities

Collection of static methods to convert special and extended characters into HTML entities and vice versa. Plus de détails...

Liste de tous les membres

Fonctions membres publiques

 HTMLEntities ()
 Initialize HTML translation maps.

Fonctions membres publiques statiques

static Object[][] getEntitiesTable ()
 Get the HTML entities translation table.
static String htmlentities (String str)
 Convert special and extended characters into HTML entities.
static String unhtmlentities (String str)
 Convert HTML entities to special and extended unicode characters equivalents.
static String htmlSingleQuotes (String str)
 Replace single quotes characters with HTML entities.
static String unhtmlSingleQuotes (String str)
 Replace single quotes HTML entities with equivalent character.
static String htmlDoubleQuotes (String str)
 Replace double quotes characters with HTML entities.
static String unhtmlDoubleQuotes (String str)
 Replace single quotes HTML entities with equivalent character.
static String htmlQuotes (String str)
 Replace single and double quotes characters with HTML entities.
static String unhtmlQuotes (String str)
 Replace single and double quotes HTML entities with equivalent characters.
static String htmlAngleBrackets (String str)
 Replace < > characters with &lt; &gt; entities.
static String unhtmlAngleBrackets (String str)
 Replace &lt; &gt; entities with < > characters.
static String htmlAmpersand (String str)
 Replace & characters with &amp; HTML entities.
static String unhtmlAmpersand (String str)
 Replace &amp; HTML entities with & characters.

Description détaillée

Collection of static methods to convert special and extended characters into HTML entities 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

Auteur:
Nicola Asuni [www.tecnick.com].
Version:
1.0.004 (edited by Kevin Subileau to remove warnings.)

Documentation des constructeurs et destructeur

Initialize HTML translation maps.


Documentation des fonctions membres

static Object [][] getEntitiesTable ( ) [static]

Get the HTML entities translation table.

Renvoie:
translation table
static String htmlAmpersand ( String  str) [static]

Replace & characters with &amp; HTML entities.

Paramètres:
strthe input string
Renvoie:
string with replaced characters
static String htmlAngleBrackets ( String  str) [static]

Replace < > characters with &lt; &gt; entities.

Paramètres:
strthe input string
Renvoie:
string with replaced characters
static String htmlDoubleQuotes ( String  str) [static]

Replace double quotes characters with HTML entities.

Paramètres:
strthe input string
Renvoie:
string with replaced double quotes
static String htmlentities ( String  str) [static]

Convert special and extended characters into HTML entities.

Paramètres:
strinput string
Renvoie:
formatted string
Voir également:
unhtmlentities(String)
static String htmlQuotes ( String  str) [static]

Replace single and double quotes characters with HTML entities.

Paramètres:
strthe input string
Renvoie:
string with replaced quotes
static String htmlSingleQuotes ( String  str) [static]

Replace single quotes characters with HTML entities.

Paramètres:
strthe input string
Renvoie:
string with replaced single quotes
static String unhtmlAmpersand ( String  str) [static]

Replace &amp; HTML entities with & characters.

Paramètres:
strthe input string
Renvoie:
string with replaced entities
static String unhtmlAngleBrackets ( String  str) [static]

Replace &lt; &gt; entities with < > characters.

Paramètres:
strthe input string
Renvoie:
string with replaced entities
static String unhtmlDoubleQuotes ( String  str) [static]

Replace single quotes HTML entities with equivalent character.

Paramètres:
strthe input string
Renvoie:
string with replaced single quotes
static String unhtmlentities ( String  str) [static]

Convert HTML entities to special and extended unicode characters equivalents.

Paramètres:
strinput string
Renvoie:
formatted string
Voir également:
htmlentities(String)
static String unhtmlQuotes ( String  str) [static]

Replace single and double quotes HTML entities with equivalent characters.

Paramètres:
strthe input string
Renvoie:
string with replaced quotes
static String unhtmlSingleQuotes ( String  str) [static]

Replace single quotes HTML entities with equivalent character.

Paramètres:
strthe input string
Renvoie:
string with replaced single quotes

La documentation de cette classe a été générée à partir du fichier suivant :