Use .call() on the sanitize function

pull/147/head
adamb70 4 years ago
parent 9d2665b895
commit c83c593d58

@ -1765,7 +1765,7 @@ EasyMDE.prototype.markdown = function (text) {
// Sanitize HTML
if (this.options.renderingConfig && typeof this.options.renderingConfig.sanitizerFunction === 'function') {
htmlText = this.options.renderingConfig.sanitizerFunction(htmlText);
htmlText = this.options.renderingConfig.sanitizerFunction.call(this, htmlText);
}
// Edit the HTML anchors to add 'target="_blank"' by default.

Loading…
Cancel
Save