HTML entities

Sarah Reichelt sarah.reichelt at gmail.com
Mon May 29 20:49:17 EDT 2006


Hi All,

I have a field of data that I want to format into a web page. The data
can contain symbols, most likely just the degree symbol but possibly
others. If I get the htmltext of the field, it gives me the correct
entity for the degree symbol: °

However I don't want to use the htmltext, since I am building my own
table display from the data. Is there a way to translate a symbol to
it's html entity? I suppose I could just use a lookup table of the
likely candidates and loop through them, replacing as necessary, but
since Rev "knows" the entities, I was hoping there was a function that
I haven't spotted, to get them directly.

TIA,
Sarah



More information about the use-livecode mailing list