diff --git a/editor/sanitize.js b/editor/sanitize.js index 6a00d1e7..1df458b1 100644 --- a/editor/sanitize.js +++ b/editor/sanitize.js @@ -38,7 +38,10 @@ nsMap_[se_ns] = 'se'; nsMap_[htmlns] = 'xhtml'; nsMap_[mathns] = 'mathml'; -// map prefixes to namespace URIs +// temporarily expose these +svgedit.sanitize.getNSMap = function() { return nsMap_; } + +// map prefixes to namespace URIs (reverse of nsMap_) var nsRevMap_ = {}; $.each(nsMap_, function(key,value){ nsRevMap_[value] = key; @@ -129,9 +132,6 @@ $.each(svgWhiteList_, function(elt,atts){ svgWhiteListNS_[elt] = attNS; }); -// temporarily expose these -svgedit.sanitize.getNSMap = function() { return nsMap_; } - // Function: svgedit.sanitize.sanitizeSvg // Sanitizes the input node and its children // It only keeps what is allowed from our whitelist defined above