diff options
Diffstat (limited to 'packages/astro-parser/src/parse/state')
-rw-r--r-- | packages/astro-parser/src/parse/state/tag.ts | 4 | ||||
-rw-r--r-- | packages/astro-parser/src/parse/state/text.ts | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/packages/astro-parser/src/parse/state/tag.ts b/packages/astro-parser/src/parse/state/tag.ts index 70fa9e361..f3d30b06d 100644 --- a/packages/astro-parser/src/parse/state/tag.ts +++ b/packages/astro-parser/src/parse/state/tag.ts @@ -2,7 +2,7 @@ import read_expression from '../read/expression.js'; import read_style from '../read/style.js'; -import { decode_character_references, closing_tag_omitted } from '../utils/html.js'; +import { closing_tag_omitted } from '../utils/html.js'; import { is_void } from '../../utils/names.js'; import { Parser } from '../index.js'; import { Directive, DirectiveType, TemplateNode, Text } from '../../interfaces.js'; @@ -533,7 +533,7 @@ export function read_sequence(parser: Parser, done: () => boolean): TemplateNode function flush() { if (current_chunk.raw) { - current_chunk.data = decode_character_references(current_chunk.raw); + current_chunk.data = current_chunk.raw; current_chunk.end = parser.index; chunks.push(current_chunk); } diff --git a/packages/astro-parser/src/parse/state/text.ts b/packages/astro-parser/src/parse/state/text.ts index 020d066fd..dec284ae4 100644 --- a/packages/astro-parser/src/parse/state/text.ts +++ b/packages/astro-parser/src/parse/state/text.ts @@ -1,6 +1,5 @@ // @ts-nocheck -import { decode_character_references } from '../utils/html.js'; import { Parser } from '../index.js'; export default function text(parser: Parser) { @@ -25,7 +24,7 @@ export default function text(parser: Parser) { end: parser.index, type: 'Text', raw: data, - data: decode_character_references(data), + data, }; parser.current().children.push(node); |