Page 1 of 1

HTML entities

Posted: Thu Oct 15, 2009 1:24 pm
by exheusden
In HC and SuperCard I wrote a shared script to change accented characters and other special characters in text holders to HTML entities. I could reuse the script (more or less) in Revolution, but I was wondering if there was already a means of doing this. I know the HTMLtext property includes HTML entities capabilities, but I fear that the other aspects of the property will be excessive.

Posted: Thu Oct 15, 2009 4:22 pm
by FourthWorld
It's hard to say which would be better without seeing your script, but htmlText is pretty nifty. You can parse out what you don't need, and you get all the ISO-8959-1 character entities for free.

Alternatively you could consider putting a lookup table into an array, which would give you pretty fast performance while leaving you in control of the details of what you do with those entities.