Packageedu.stanford.covertlab.util
Classpublic class HTML

Utility class for operations on HTML-like text markup. Supports superscript (<sup>), subscript (<sub>), and Greek characters (eg &alpha;). 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

See also

edu.stanford.covertlab.graphics.SupSubRasterText
edu.stanford.covertlab.controls.SupSubDataGridItemRenderer
edu.stanford.covertlab.graphics.renderer.SVGRenderer
edu.stanford.covertlab.networkanalyzer.manager.NetworkManager
edu.stanford.covertlab.diagram.core.Biomolecule
edu.stanford.covertlab.diagram.panel.BiomoleculesPanel
edu.stanford.covertlab.diagram.window.EditBiomoleculeWindow
edu.stanford.covertlab.control.GreekKeyboard


Public Methods
 MethodDefined by
  
entitiesToDecimal(text:String):String
[static]
HTML
  
escapeMySQL(text:String):String
[static]
HTML
  
escapeXML(text:String):String
[static]
HTML
  
unescapeXML(text:String):String
[static]
HTML
  
validate(text:String):String
[static] supports the following - superscript, subscript - greek characters 913-937, 945-969 using html entities oes not support - underline, bold, italic
HTML
Public Constants
 ConstantDefined by
  ENTITIES : Array
[static]
HTML
  GREEK_CHARACTERS : ArrayCollection
[static]
HTML
Method detail
entitiesToDecimal()method
public static function entitiesToDecimal(text:String):StringParameters
text:String

Returns
String
escapeMySQL()method 
public static function escapeMySQL(text:String):StringParameters
text:String

Returns
String
escapeXML()method 
public static function escapeXML(text:String):StringParameters
text:String

Returns
String
unescapeXML()method 
public static function unescapeXML(text:String):StringParameters
text:String

Returns
String
validate()method 
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
text:String

Returns
String
Constant detail
ENTITIESconstant
public static const ENTITIES:Array
GREEK_CHARACTERSconstant 
public static const GREEK_CHARACTERS:ArrayCollection