Replicate
Create test.html:
<!DOCTYPE html>
<html>
<body>
Hello && world!
</body>
</html>
Run:
tidy -m -q --wrap 0 --tidy-mark no --vertical-space auto --doctype html5 test.html
Expected Results
<!DOCTYPE html><html><head><title></title></head><body>Hello && world!</body></html>
Actual Results
<!DOCTYPE html><html><head><title></title></head><body>Hello && world!</body></html>
Note the ampersands.
Discussion
While this behaviour is correct for HTML5, it would be nice to have an option to always encode them.
Replicate
Create
test.html:Run:
Expected Results
Actual Results
Note the ampersands.
Discussion
While this behaviour is correct for HTML5, it would be nice to have an option to always encode them.