Commit 21eaeb31 authored by Leigh Stoller's avatar Leigh Stoller

Set marked sanitize option on all the time.

parent b0aa5569
......@@ -56,6 +56,8 @@ $(function ()
// Get context for constraints
var contextUrl = 'https://www.emulab.net/protogeni/jacks-context/cloudlab-utah.json';
$.get(contextUrl).then(contextReady, contextFail);
// Standard view option
marked.setOptions({"sanitize" : true});
window.APT_OPTIONS.initialize(sup);
window.APT_OPTIONS.initialize(ppstart);
......
......@@ -64,6 +64,9 @@ $(function ()
isadmin = window.ISADMIN;
multisite = window.MULTISITE;
// Standard option
marked.setOptions({"sanitize" : true});
var fields = JSON.parse(_.unescape($('#form-json')[0].textContent));
var errors = JSON.parse(_.unescape($('#error-json')[0].textContent));
var projlist = JSON.parse(_.unescape($('#projects-json')[0].textContent));
......
......@@ -39,6 +39,9 @@ $(function ()
ajaxurl = window.AJAXURL;
isppprofile = window.ISPPPROFILE;
// Standard option
marked.setOptions({"sanitize" : true});
var fields = JSON.parse(_.unescape($('#form-json')[0].textContent));
amlist = JSON.parse(_.unescape($('#amlist-json')[0].textContent));
......
......@@ -82,6 +82,9 @@ $(function ()
hidelinktest = window.APT_OPTIONS.hidelinktest;
var errorURL = window.HELPFORUM;
// Standard option
marked.setOptions({"sanitize" : true});
if ($('#extension-blob-json').length) {
extension_blob = decodejson('#extension-blob-json');
console.info(extension_blob);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment