Added stripping of html from markdown
This commit is contained in:
@@ -24,7 +24,10 @@ angular.module('kibana.text', [])
|
||||
var scripts = $LAB.script("panels/text/lib/showdown.js")
|
||||
scripts.wait(function(){
|
||||
var converter = new Showdown.converter();
|
||||
var htmlText = converter.makeHtml(scope.panel.content);
|
||||
var text = scope.panel.content.replace(/&/g, '&')
|
||||
.replace(/>/g, '>')
|
||||
.replace(/</g, '<');
|
||||
var htmlText = converter.makeHtml(text);
|
||||
element.html(htmlText);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user