Skip to content

Commit f2b8240

Browse files
committed
[fix] html entities decode error
1 parent 91f8764 commit f2b8240

File tree

8 files changed

+2218
-1936
lines changed

8 files changed

+2218
-1936
lines changed

src/compiler/parse/state/tag.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ function read_sequence(parser: Parser, done: () => boolean, location: string): T
518518

519519
function flush(end: number) {
520520
if (current_chunk.raw) {
521-
current_chunk.data = decode_character_references(current_chunk.raw);
521+
current_chunk.data = decode_character_references(current_chunk.raw, true);
522522
current_chunk.end = end;
523523
chunks.push(current_chunk);
524524
}

src/compiler/parse/state/text.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default function text(parser: Parser) {
1919
end: parser.index,
2020
type: 'Text',
2121
raw: data,
22-
data: decode_character_references(data)
22+
data: decode_character_references(data, false)
2323
};
2424

2525
parser.current().children.push(node);

0 commit comments

Comments
 (0)