I understand that HTML allows the values of attributes to be contained in either single or double quotes, e.g. `<a href='...'>' is valid.
Why is it that HTML::Template, and CGI, only escape double quotes and not single? This leads to <input type=text name=x value='O'Reilly'>.
I was just browsing that very bit of code.
# straight from the CGI.pm bible.
So it looks like it should escape it and lt explains why HTML::Template and CGI work the same.
Are you a Microsoft user by any chance? If so, turn "smart quotes" off.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.