Skip to content

Commit

Permalink
fix(security): Santiize by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeal committed Sep 30, 2017
1 parent 379709a commit d4fbdbe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Expand Up @@ -52,6 +52,9 @@ class MarkdownElement extends ZComponent {
get noTables () { return this.hasAttribute('notables') }
set noTables (value) { toggleAttribute(this, 'notables', value) }

get noSanitize () { return this.hasAttribute('noSanitize') }
set noSanitize (value) { toggleAttribute(this, 'noSanitize', value) }

get breaks () { return this.hasAttribute('breaks') }
set breaks (value) { toggleAttribute(this, 'breaks', value) }

Expand Down Expand Up @@ -91,7 +94,7 @@ class MarkdownElement extends ZComponent {
breaks: this.breaks,
pedantic: this.pedantic,
highlight: !this.noHighlight,
sanitize: false,
sanitize: !this.noSanitize,
smartLists: !this.noSmartLists,
smartypants: this.smartyPants
}
Expand Down

0 comments on commit d4fbdbe

Please sign in to comment.