diff options
Diffstat (limited to 'nuldoc-src/html.ts')
| -rw-r--r-- | nuldoc-src/html.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nuldoc-src/html.ts b/nuldoc-src/html.ts index d127d29..2832490 100644 --- a/nuldoc-src/html.ts +++ b/nuldoc-src/html.ts @@ -132,11 +132,11 @@ function textNodeToHtmlText(t: Text, ctx: Context): string { } function encodeSpecialCharacters(s: string): string { - return s.replaceAll(/&(?!\w+;)/g, '&') - .replaceAll(/</g, '<') - .replaceAll(/>/g, '>') - .replaceAll(/'/g, ''') - .replaceAll(/"/g, '"'); + return s.replaceAll(/&(?!\w+;)/g, "&") + .replaceAll(/</g, "<") + .replaceAll(/>/g, ">") + .replaceAll(/'/g, "'") + .replaceAll(/"/g, """); } function elementNodeToHtmlText(e: Element, ctx: Context): string { |
