Skip to content

Commit

Permalink
fix: TextNode#toString should use rawText
Browse files Browse the repository at this point in the history
  • Loading branch information
nonara committed Jun 30, 2021
1 parent e77fe84 commit 996320e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nodes/text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@ export default class TextNode extends Node {
}

public toString() {
return this.text;
return this.rawText;
}
}

0 comments on commit 996320e

Please sign in to comment.