PDA

View Full Version : formatting JavaScript


budp
09-22-2002, 08:11 PM
The HTML formatter trashes JavaScript.
In a statement like:

<A href="Menu.htm" onmouseover="MouseOn('Menu')" onmouseout="MouseOff('Menu')"><IMG name="Menu" alt="Menu" border="0" src="Menu1.jpg"></A>

the single quotes within the double quotes around the word 'Menu' will be removed:

<A href="Menu.htm" onmouseover="MouseOn(Menu)" onmouseout="MouseOff(Menu)"><IMG name="Menu" alt="Menu" border="0" src="Menu.jpg"></A>

Is there a fix for this?
The formatter is useful for analyzing generated HTML, but it is tedious to try to repair the damage.

HZR
09-22-2002, 09:29 PM
I've noticed this also. Cut out the code, clean up the remaining code, and paste the first code again.