org.jsoup.nodes
Class Entities
java.lang.Object
org.jsoup.nodes.Entities
-
public class Entities
-
extends
Object
HTML entities, and escape routines. Source: W3C HTML named character references.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isNamedEntity
public static boolean isNamedEntity(String name)
-
Check if the input is a known named entity
-
-
Parameters:
-
name - the possible entity name (e.g. "lt" or "amp"
-
Returns:
-
true if a known named entity
getCharacterByName
public static Character getCharacterByName(String name)
-
Get the Character value of the named entity
-
-
Parameters:
-
name - named entity (e.g. "lt" or "amp")
-
Returns:
-
the Character value of the named entity (e.g. '<' or '&')
Copyright © 2009-2012
Jonathan Hedley. All Rights Reserved.