diff --git a/dashboard-ui/components/viewcontainer-lite.js b/dashboard-ui/components/viewcontainer-lite.js index 7e4506f40d..d497d61a71 100644 --- a/dashboard-ui/components/viewcontainer-lite.js +++ b/dashboard-ui/components/viewcontainer-lite.js @@ -102,8 +102,16 @@ define([], function () { } } + function replaceAll(str, find, replace) { + + return str.split(find).join(replace); + } + function parseHtml(html) { + html = replaceAll(html, '', ''); + var wrapper = document.createElement('div'); wrapper.innerHTML = html; return wrapper.querySelector('div[data-role="page"]');