| Method | Defined By | ||
|---|---|---|---|
HTML(text:String, convert:Boolean = true)
Creates a new HTML instance. | HTML | ||
append(text:String, convert:Boolean = true):void
Appends the specified text in the HTML string. | HTML | ||
decode(html:String):String [static]
Decodes the specified string. | HTML | ||
encode(text:String):String [static]
Encodes the specified text passed in argument. | HTML | ||
toString():String
Returns the String representation of the object. | HTML | ||
| HTML | () | Constructor |
public function HTML(text:String, convert:Boolean = true)Creates a new HTML instance.
Parameterstext:String — The HTML text value of the object.
| |
convert:Boolean (default = true) — The convert flag who indicates if the html text must be encoded.
|
| append | () | method |
public function append(text:String, convert:Boolean = true):voidAppends the specified text in the HTML string.
Parameters
text:String — The text to append.
| |
convert:Boolean (default = true) — Indicates if the text is encoded.
|
| decode | () | method |
public static function decode(html:String):StringDecodes the specified string.
Example :
import system.text.html.HTML ;
trace( HTML.decode("<b>hello world</b>" ) ) ; // hello world
Parameters
html:String |
String — the decode string.
|
| encode | () | method |
public static function encode(text:String):StringEncodes the specified text passed in argument.
Example :
import system.text.html.HTML ;
trace( HTML.encode("hello world" ) ) ; // <b>hello world</b>
Parameters
text:String |
String — a string encode text.
|
| toString | () | method |
public function toString():StringReturns the String representation of the object.
ReturnsString — the String representation of the object.
|