html entities

Monte Goulding monte at sweattechnologies.com
Fri Oct 29 17:26:15 EDT 2010


If you don't want to use a lookup table then pulling out these entities using repeat while matchchunk and in the loop setting the htmltext of a second field and doing chartonum on the text of the field would work.

Cheers

Monte

Sent from my iPad

On 30/10/2010, at 1:53 AM, Chris Sheffield <cmsheffield at gmail.com> wrote:

> Got a small problem and wondering if there's any way around it.
> 
> When getting the htmlText of a field, is there any way to make Rev/LiveCode return the numeric html entities of special characters? So for example, if I have a word in Spanish, like "día" (accented i), if I put that into a text field and get the htmlText property of that field, is there any way to return the string "d&#237;a" instead of "d&iacute;a"? When setting the htmlText property, either one works, but Rev always returns the latter.
> 
> Thoughts?
> 
> Thanks,
> Chris
> 
> --
> Chris Sheffield
> Read Naturally, Inc.
> www.readnaturally.com
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution


More information about the use-livecode mailing list