-
Notifications
You must be signed in to change notification settings - Fork 433
Open
Labels
Milestone
Description
$ cat -n foo.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title> </title>
5 </head>
6 <body>
7 This & that.
8 Unescaped open angle bracket < and an unescaped close bracket >.
9 </body>
10 </html>
I was surprised that Tidy did not complain about the <
and >
on line 8.
$ tidy -q -e foo.html
$ tidy -q foo.html
<!DOCTYPE html>
<html>
<head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<title></title>
</head>
<body>
This & that. Unescaped open angle bracket < and an unescaped
close bracket >.
</body>
</html>
The -e
showed no errors, and tidy just automatically converted >
to >
and <
to <
. I was expecting it to complain. Or did I miss a config option?