info.informatica.html
Class HTMLUtil
java.lang.Object
info.informatica.html.HTMLUtil
public class HTMLUtil
- extends Object
HTML utilities.
- Version:
- 1.01
- Author:
- amengual at informatica dot info
HTMLUtil
public HTMLUtil()
charToEntity
public static String charToEntity(String t)
charToEntity
public static String charToEntity(char c)
- Converts a character in the corresponding HTML entity.
- Parameters:
c - the character.
- Returns:
- the entity for the given character, null if no conversion
available.
entityToChar
public static String entityToChar(String t)
- Gets the character corresponding to a given HTML entity.
- Parameters:
t - the HTML entity.
- Returns:
- the character.