diff --git a/services/web/frontend/js/directives/mathjax.js b/services/web/frontend/js/directives/mathjax.js index 422fac6844..b7c947071e 100644 --- a/services/web/frontend/js/directives/mathjax.js +++ b/services/web/frontend/js/directives/mathjax.js @@ -8,15 +8,6 @@ export default App.directive('mathjax', function($compile, $parse) { link(scope, element, attrs) { if (!(MathJax && MathJax.Hub)) return - // Allowing HTML can be unsafe unless using something like - // `ng-bind-html` because of potential Angular XSS via {{/}} - if (!$parse(attrs.mathjaxAllowHtml)(scope)) { - const mathJaxContents = element.html() - const nonBindableEl = $compile('')({}) - element.html('').append(nonBindableEl) - nonBindableEl.html(mathJaxContents) - } - if (attrs.delimiter !== 'no-single-dollar') { const inlineMathConfig = MathJax.Hub.config && MathJax.Hub.config.tex2jax.inlineMath