|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
totalcross.lang.Objecttotalcross.ui.html.EscapeHtml
public class EscapeHtml
A class that can be used to convert escape characters in a Html string.
| Field Summary | |
|---|---|
static String |
amp
When passing the escaped string to a SOAP service, you must change this to EscapeHtml.amp = "&"; and then set back to null when done. |
static StringBuffer |
sbuf
The temporary buffer used by the convertion methods. |
| Constructor Summary | |
|---|---|
EscapeHtml()
|
|
| Method Summary | |
|---|---|
static String |
escape(String s)
Converts special chars into escaped sequences. |
static String |
unescape(String escaped)
Converts escaped sequences into special chars. |
| Methods inherited from class totalcross.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static StringBuffer sbuf
public static String amp
EscapeHtml.amp = "&";and then set back to null when done.
| Constructor Detail |
|---|
public EscapeHtml()
| Method Detail |
|---|
public static final String escape(String s)
public static final String unescape(String escaped)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||