reading and converting web page HTML text
Jim Ault
jimaultwins at yahoo.com
Sat Mar 6 19:13:53 EST 2010
On Mar 6, 2010, at 2:35 PM, Mark Stuart wrote:
>
> Hi François,
>
> Thanx for your quick reply.
> I added Sarah's script into my application and ran it.
>
> The function halted with an error on ("), because it is not a
> number. I
> think Sarah's function is looking for a number after the ampersand,
> correct?
> So I'm handling the (") as an exception for now by using this
> script:
>
> if theText contains """ then
> replace """ with quote in theText
> end if
>
> and then call the decodeEntities(theText) function.
>
> I'm sure I'll come across other HTML text like this, but don't know
> how to
> handle it really.
Basically, I would go to a site that shows all html entities, make a
list of those, and do a replace using a repeat loop.
Google 'html entities' to get the possibilities.
Jim Ault
Las Vegas
More information about the use-livecode
mailing list