org.jsoup.nodes
Class Entities

java.lang.Object
  extended by org.jsoup.nodes.Entities

public class Entities
extends Object

HTML entities, and escape routines. Source: W3C HTML named character references.


Nested Class Summary
static class Entities.EscapeMode
           
 
Method Summary
static Character getCharacterByName(String name)
          Get the Character value of the named entity
static boolean isBaseNamedEntity(String name)
          Check if the input is a known named entity in the base entity set.
static boolean isNamedEntity(String name)
          Check if the input is a known named entity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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

isBaseNamedEntity

public static boolean isBaseNamedEntity(String name)
Check if the input is a known named entity in the base entity set.

Parameters:
name - the possible entity name (e.g. "lt" or "amp")
Returns:
true if a known named entity in the base set
See Also:
isNamedEntity(String)

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-2015 Jonathan Hedley. All Rights Reserved.