diff options
Diffstat (limited to 'packages/astro-parser/src/parse/state/text.ts')
-rw-r--r-- | packages/astro-parser/src/parse/state/text.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/astro-parser/src/parse/state/text.ts b/packages/astro-parser/src/parse/state/text.ts index dec284ae4..020d066fd 100644 --- a/packages/astro-parser/src/parse/state/text.ts +++ b/packages/astro-parser/src/parse/state/text.ts @@ -1,5 +1,6 @@ // @ts-nocheck +import { decode_character_references } from '../utils/html.js'; import { Parser } from '../index.js'; export default function text(parser: Parser) { @@ -24,7 +25,7 @@ export default function text(parser: Parser) { end: parser.index, type: 'Text', raw: data, - data, + data: decode_character_references(data), }; parser.current().children.push(node); |