Skip to content

Commit

Permalink
fix: escape value in default highlighter
Browse files Browse the repository at this point in the history
  • Loading branch information
petersolopov committed Jun 14, 2020
1 parent 28169d3 commit 40dbffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Yace {
value: "",
styles: {},
plugins: [],
highlighter: (value) => value,
highlighter: (value) => escape(value),
};

this.options = {
Expand Down

0 comments on commit 40dbffd

Please sign in to comment.