From 2b50e1778b164e641c03c2e77176b6f47ca1e278 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 18 Mar 2023 15:47:05 +0900 Subject: refactor: add RawHTML type to represent text node not being escaped --- nuldoc-src/xml.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nuldoc-src/xml.ts') diff --git a/nuldoc-src/xml.ts b/nuldoc-src/xml.ts index bb7d499..9c0ea45 100644 --- a/nuldoc-src/xml.ts +++ b/nuldoc-src/xml.ts @@ -80,6 +80,7 @@ function parseTextNode(p: Parser): Text { return { kind: "text", content: replaceEntityReferences(content), + raw: false, }; } @@ -90,6 +91,7 @@ function parseCdata(p: Parser): Text { return { kind: "text", content: formatCdata(content), + raw: false, }; } -- cgit v1.2.3-70-g09d2