Forum Moderators: open

Message Too Old, No Replies

Adding quotes to tag attributes automatically

         

optik

10:23 pm on Jan 28, 2010 (gmt 0)

10+ Year Member



I have a load of files that don't have quoted tag attributes, is there any preferably free OSX software that can do this?

If not then PC software.

mattur

6:33 pm on Feb 2, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Tidy can do this:

# Missing quotes around attribute values are added

Tidy inserts quote marks around all attribute values for you. It can also detect when you have forgotten the closing quote mark, although this is something you will have to fix yourself.

[w3.org...]

[tidy.sourceforge.net...]

optik

8:34 pm on Feb 3, 2010 (gmt 0)

10+ Year Member



Despite what the W3 site says I can't find the command that does that.

mattur

11:52 am on Feb 12, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Tidy quotes attributes automatically:


tidy YourFile.html > YourFileWithQuotedAttributes.html