Utility class for operations on HTML-like text markup. Supports superscript (<sup>),
subscript (<sub>), and Greek characters (eg α). Does not support italics,
bold, underline, or any other HTML markup. Also doesn't support decimal or hexadecimal
markup of Greek characters.
Contains several functions
- Validate marked up text (and return error messages)
used by BiomoleculesPanel and
EditBiomoleculeWindow
- Substitute greek character entities with decimal notation in marked up text
used by SupSubRasterText, SupSubDataGridItemRenderer, Biomolecule
- Escape marked up text for use in an XML document or MySQL statement
used by SVGRenderer, NetworkManager
public static function entitiesToDecimal(text:String):StringParameters
Returns
public static function escapeMySQL(text:String):StringParameters
Returns
public static function escapeXML(text:String):StringParameters
Returns
public static function unescapeXML(text:String):StringParameters
Returns
public static function validate(text:String):String
supports the following
- superscript, subscript
- greek characters 913-937, 945-969 using html entities
oes not support
- underline, bold, italic
Parameters
Returns
public static const ENTITIES:Array
public static const GREEK_CHARACTERS:ArrayCollection