HTML detection

Mark Schonewille m.schonewille at economy-x-talk.com
Wed Oct 11 12:02:19 EDT 2006


Hi JB,

Any correct html file contains <html> and the htmlText property  
always contains <p> and </p> even if the owner of the property is  
empty. A text that doesn't contain the < and > characters isn't an  
html text. Of course, once you have modified that text using a script  
or if you have only a small part of the html code, these "rules" no  
longer apply.

Best,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Get your store on-line within minutes with Salery Web Store software.  
Download at http://www.salery.biz

Op 11-okt-2006, om 17:38 heeft jbv het volgende geschreven:

> Hi list,
>
> Does anyone have a simple piece of code to detect if
> some text contains html tags ?
>
> I thought of maintening a list of all possible html tags
> and chacking if the text contains any of them, but I
> have the feeling that there might be a simpler and / or
> more elegant solution...
>
> Thanks,
> JB





More information about the use-livecode mailing list