List Info

Thread: Prevent tidy from escaping URIs




Prevent tidy from escaping URIs
user name
2007-10-07 20:42:41
Hi all,

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.j
s"
type="text/javascript">

Any idea what toggle there is to disable that, and more
importantly,
why is it doing that?

Thanks. 

- sf



Re: Prevent tidy from escaping URIs
country flaguser name
Germany
2007-10-08 07:25:43
* 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.j
s"
>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:bjoernhoehrmann.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/ 


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )