|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindprod.entities.InsertEntities
public class InsertEntities
Inserts HTML entities such as " into a String replacing the single character equivalents.
Entities are coded inline in a giant case.
InsertEntities
,
InsertFileEntities
,
StripEntities
,
StripFileEntities
Constructor Summary | |
---|---|
InsertEntities()
|
Method Summary | |
---|---|
static java.lang.String |
insertHTMLEntities(java.lang.String text)
Converts text to HTML by quoting dangerous characters. |
static java.lang.String |
insertXMLEntities(java.lang.String text)
Converts text to XML by quoting dangerous characters. |
static java.lang.String |
toHTMLEntity(char c)
Converts text to HTML by quoting dangerous characters.; Does not convert space to |
static java.lang.String |
toXMLEntity(char c)
Converts text to XML by quoting dangerous characters.; Does not convert space to |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InsertEntities()
Method Detail |
---|
public static java.lang.String insertHTMLEntities(java.lang.String text)
text
- raw text to be processed. Must not be null.
public static java.lang.String insertXMLEntities(java.lang.String text)
text
- raw text to be processed. Must not be null.
public static java.lang.String toHTMLEntity(char c)
c
- raw character.
public static java.lang.String toXMLEntity(char c)
c
- raw character.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |