Re: Stopping bad HTML propagation ?
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 11525
interpreted = N
texte = >We want to allow the catalog maintainers to use HTML _within_ their >entries so that they can use lists, figures etc at their discretion. This >brings up the problem of how to stop bad HTML from propagating down the >page.>>Just as an example, assume that one of the maintainers puts in an
>but forgets to put in the closing
tag. Unless we do something about >it, the rest of the [founditems] entries on the page would end up as
.That's a tough one. I spent about 1/2 hour looking thru BBEdit 4.0 to see if it can be AppleScripted to check the syntax of a text file. While it can be scripted to do many things, syntax-checking doesn't seem to be one of them.Perhaps you could do a [WriteFile] to render the text out to a URL, then use Chuck Shotton's NetEvents to send the URL to one of those free WebLint web-based syntax checkers. Perhaps you could decode the results and use that information to decide if the HTML is good or not.All of this sounds like too much trouble to be worth it, though.Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====Pacific Coast Software | WebCatalog Pro, WebCommerce Solution11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Associated Messages, from the most recent to the oldest:
>We want to allow the catalog maintainers to use HTML _within_ their >entries so that they can use lists, figures etc at their discretion. This >brings up the problem of how to stop bad HTML from propagating down the >page.>>Just as an example, assume that one of the maintainers puts in an
>but forgets to put in the closing
tag. Unless we do something about >it, the rest of the
[founditems] entries on the page would end up as
.That's a tough one. I spent about 1/2 hour looking thru BBEdit 4.0 to see if it can be AppleScripted to check the syntax of a text file. While it can be scripted to do many things, syntax-checking doesn't seem to be one of them.Perhaps you could do a [writefile] to render the text out to a URL, then use Chuck Shotton's NetEvents to send the URL to one of those free WebLint web-based syntax checkers. Perhaps you could decode the results and use that information to decide if the HTML is good or not.All of this sounds like too much trouble to be worth it, though.Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====Pacific Coast Software | WebCatalog Pro, WebCommerce Solution11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Grant Hulbert
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
What am I doing wrong? (2000)
Sherlock plug-in? (1999)
Date search bug (1998)
relogin same user? (1998)
Authentication (1998)
SFTP (2004)
values being mis-placed in results (2000)
Max Record length restated as maybe bug (1997)
Generating Report Totals (1997)
[WebDNA] OT: How is this being done? Curious. (2009)
Windows 95/NT tip of the month (1998)
Add a field to the error log? (1997)
URGENT: Can't email orders - HELP #2 (1998)
HMAC-MD5 hash -- what the... (2003)
Bay Area Residents / Bay To Breakers (1998)
two unique banners on one page (1997)
docs for WebCatalog2 (1997)
categorys (1998)
Is this possible, WebCat2.0 and checkboxes (1997)
Great product and great job ! (1997)