Skip to content

Commit

Permalink
Merge pull request editor-js#20 from m-alzam/master
Browse files Browse the repository at this point in the history
Fix automatic sanitize removing html tags
  • Loading branch information
neSpecc authored Jun 5, 2020
2 parents 1297b8c + 1576d61 commit 0aad802
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@editorjs/code",
"version": "2.4.1",
"version": "2.4.2",
"keywords": [
"codex editor",
"code",
Expand Down
9 changes: 9 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,15 @@ class CodeTool {
tags: [ 'pre' ],
};
}

/**
* Automatic sanitize config
*/
static get sanitize() {
return {
code: true // Allow HTML tags
};
}
}

module.exports = CodeTool;

0 comments on commit 0aad802

Please sign in to comment.