Click here to get back home

trouble using html tidy with template files

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
trouble using html tidy with template files Sebastian Gohres 03-04-2006
Get Chitika Premium
Posted by Sebastian Gohres on March 4, 2006, 1:12 pm
Please log in for more thread options


Hi!

First: sorry for my bad english :)

If I parse template files, html tidy remove all tags beginning with {
for example:

before:

<select name="country" size="1">
{section name=country loop=data}
<option></option>

</select>

after:

<select name="country" size="1">
<option></option>
</select>

Only the "" is untouched, because html tidy take it for
a value not for a tag.
How can I teach html tidy to ignore text starting with { and ending with }?

Thanks for your help!

S. Gohres

Posted by Roy Schestowitz on March 6, 2006, 6:48 am
Please log in for more thread options


__/ [ Sebastian Gohres ] on Saturday 04 March 2006 18:12 \__

> Hi!
>
> First: sorry for my bad english :)
>
> If I parse template files, html tidy remove all tags beginning with {
> for example:
>
> before:
>
> <select name="country" size="1">
> {section name=country loop=data}
> <option></option>
>
> </select>
>
> after:
>
> <select name="country" size="1">
> <option></option>
> </select>
>
> Only the "" is untouched, because html tidy take it for
> a value not for a tag.
> How can I teach html tidy to ignore text starting with { and ending with }?
>
> Thanks for your help!
>
> S. Gohres

Your only possibility, I suspect, would be to get Tidy from SourceForge,
change the source code, and then recompile. You are not using Tidy to
sanitise true (X)HTML in this case and I can't believe an option exists for
one among the many possible exceptions.

What, for example, if you wanted to "tidy" some PHP scripts? That would
require a different tool altogether -- one which descends onto files and
executes an actual program, in PHP.

I suggest you consider before/after copies of the file being tidy'ied and
merge after the code has been sanitised. This is by no means easy if the
files are large. It becomes tedious.

Hope it helps,

Roy

--
Roy S. Schestowitz | Download Othello: http://othellomaster.com
http://Schestowitz.com | SuSE Linux | PGP-Key: 0x74572E8E
11:40am up 5 days 7:18, 9 users, load average: 0.12, 0.38, 0.50
http://iuron.com - next generation of search paradigms

Similar ThreadsPosted
Edit PSD Template Files? Photoshop Expertise? March 22, 2006, 12:54 am
including html files in other html files December 3, 2008, 12:21 pm
HTML Template Language? December 31, 2005, 9:48 am
HTML Link to an Anchor - eBay Listing Template June 30, 2005, 9:43 pm
tidy html editor January 12, 2006, 10:04 pm
Problem with downloading Word doc files and rtf files through browser January 25, 2005, 5:33 pm
Tidy HTML - feedback requestes November 20, 2004, 5:20 pm
html tidy, word 2003 and "smart quotes" April 13, 2005, 7:30 pm
HTML Tidy vs. HTML Validator March 4, 2006, 8:02 am
Share common HTML code among different HTML files? May 14, 2005, 11:05 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap