Sanitize html in panel links
This commit is contained in:
@@ -276,7 +276,7 @@ export class PanelCtrl {
|
||||
let html = '<div class="markdown-html panel-info-content">';
|
||||
|
||||
const md = renderMarkdown(interpolatedMarkdown);
|
||||
html += config.disableSanitizeHtml ? md : sanitize(md);
|
||||
html += md;
|
||||
|
||||
if (panel.links && panel.links.length > 0) {
|
||||
const interpolatedLinks = getPanelLinksSupplier(panel).getLinks();
|
||||
@@ -297,7 +297,7 @@ export class PanelCtrl {
|
||||
|
||||
html += '</div>';
|
||||
|
||||
return html;
|
||||
return config.disableSanitizeHtml ? html : sanitize(html);
|
||||
}
|
||||
|
||||
// overriden from react
|
||||
|
||||
Reference in New Issue
Block a user