W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 2003

Tidy choking on quotes-within-quotes in javascript

From: Jean-Christian Imbeault <jc@mega-bucks.co.jp>
Date: Fri, 30 May 2003 17:46:15 +0900
Message-ID: <3ED71A57.1050007@mega-bucks.co.jp>
To: html-tidy@w3.org

The following javascript gets it's quotes mangled (escaped) by Tidy:

document.write("<img src='http://domain.com" + document.referrer + "' 
width=1 height=1>");

Become:

document.write("<img src=\'http://domain.com" + document.referrer + "\' 
width=1 height=1>");

How can I prevent this? I couldn't find an appropriate Tidy directive.

Thansk!

PS please reply both to me and the list as I am new to this ML and for 
some reason I am not receiving posts ...

-- 

Jean-Christian Imbeault
Received on Friday, 30 May 2003 04:52:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:54 GMT