Package org.codehaus.xsite.extractors
Class CharacterEscaper
- java.lang.Object
-
- org.codehaus.xsite.extractors.CharacterEscaper
-
public class CharacterEscaper extends Object
Allows the escaping of characters with HTML entities. The escaped characters are expressed as a Map, linking the the Unicode character to the corresponding HTML entity. By default characters in the ordinal range 192-255 are escaped.- Author:
- Mauro Talevi
-
-
Constructor Summary
Constructors Constructor Description CharacterEscaper()CharacterEscaper(Map<String,String> characters)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Map<String,String>defaultEscapedCharacters()Returns the escaped characters from ordinal number range 192-255Stringescape(String value)static Map<String,String>escapedCharacters(int from, int to)Returns the escaped characters from ordinal number range provided
-