diff options
author | bptato <nincsnevem662@gmail.com> | 2021-02-28 13:57:27 +0000 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2021-02-28 13:59:03 +0000 |
commit | 5cbc514d15b5f4ce390b7fad5d17091431a38d9e (patch) | |
tree | 523051f20f368080840356d63a85ca64906201f1 /entity.js | |
parent | Support single-codepoint HTML entities specified by whatwg (diff) | |
download | w3m-5cbc514d15b5f4ce390b7fad5d17091431a38d9e.tar.gz w3m-5cbc514d15b5f4ce390b7fad5d17091431a38d9e.zip |
Fix small mistakes in entity test generator
Diffstat (limited to 'entity.js')
-rw-r--r-- | entity.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -//Usage: qjs --std entitytest.js [test/tab] > outfile +//Usage: qjs --std entity.js [test/tab] > outfile const a = getEntities(); @@ -39,7 +39,7 @@ function gentestitem(b, c, d) { b + "</td>" + "<td>" + - c.characters + + c.characters.replace('&', '&').replace('<', '<').replace('>', '>') + "</td>"); console.log(" </tr>"); } @@ -47,7 +47,7 @@ function gentestitem(b, c, d) { function gentest() { console.log("<!DOCTYPE html>"); console.log("<head>"); - console.log(" <meta charset=\"utf-8\""); + console.log(" <meta charset=\"utf-8\">"); console.log("</head>"); console.log("<body>"); console.log(" <table>"); |