Re: Prevent tidy from escaping URIs

* 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:bjoern@hoehrmann.de · 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/ 

Received on Monday, 8 October 2007 12:25:57 UTC