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 Solution 11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMaster San Diego, CA 92128 | SiteGuard 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Associated Messages, from the most recent to the oldest:

    
  1. Re: Stopping bad HTML propagation ? (Ed Trefzger 1997)
  2. Re: Stopping bad HTML propagation ? (Sven U. Grenander 1997)
  3. Re: Stopping bad HTML propagation ? (Grant Hulbert 1997)
  4. Stopping bad HTML propagation ? (Sven U. Grenander 1997)
  5. Re: Stopping bad HTML propagation ? (Publisher1 1997)
>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 Solution 11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMaster San Diego, CA 92128 | SiteGuard 619/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:

Trouble with formula.db + more explanation (1997) WebCat & WebTen (1997) HELP WITH DATES (1997) WebDelivery: One step closer !! (1997) Another question about credit cards (1997) RE: Explorer oddities (1997) Verifying both name and password (was: New Problem) (1997) printing twice? and fix (1997) [WebDNA] Test - Getting double messages??? (2008) [OT] Internet Access (2003) WebDelivery Text (1998) WebDNA-Talk Digests (1997) Calendar (1997) Having trouble installing on Windows XP Pro... (2006) OPEN MARKET PATENTS SOUND ECOMMERCE ALARM (1998) won't [sendmail] inside of a [search] (2007) Now when I send TeaRoom Order fields it does not post in Invoice. (1997) Custom Shipping Charges (1997) More Discount Pricing thoughts/efforts (1998) Web Catalog 2 demo (1997)