Re: Prevent tidy from escaping URIs

Bjoern Hoehrmann <[email protected]>
Newsgroups gmane.comp.web.html-tidy.user
Message-ID <[email protected]>
* Steve Finkelstein wrote:
>I'm using Tidy to clean up my HTML, and I'm running into the issue of
>it convering my URIs from:
>
><link href="<?= base_url() ?>media/js/extjs/css/ext-all.css"
>rel="stylesheet" type="text/css" media="screen" />
>
>TO:
>
><script src="%3C?=%20base_url()%20?%3Emedia/js/extjs/ext-base.js"
>type="text/javascript">
>
>Any idea what toggle there is to disable that, and more importantly,
>why is it doing that?

The switch is --fix-uri and the reason is that characters like < and
space are not allowed unescaped in attribute values. There is some
special code for PHP and ASP code, which would also prevent this, but
it's probably not triggered by "<?=".
-- 
Björn Höhrmann · mailto:[email protected] · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.