Skip to content
Browse files

Better <noscript> removal

  • Loading branch information...
1 parent 39d5293 commit f40b874c0bfa9dd5df89c6daf238e9fcaf6a3040 @vrana committed Jan 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 adminer/static/functions.js
View
2 adminer/static/functions.js
@@ -102,7 +102,7 @@ function setHtml(id, html) {
if (html == undefined) {
el.parentNode.innerHTML = '&nbsp;';
} else {
- el.innerHTML = html.replace(/<noscript>.*<\/noscript>/i, ''); // required for Google Chrome // hopes that there will be only one <noscript> on each line
+ el.innerHTML = ('' + html).replace(/<noscript>[\0-\uFFFF]*<\/noscript>/gi, ''); // required for Google Chrome
}
}
}

0 comments on commit f40b874

Please sign in to comment.
Something went wrong with that request. Please try again.