From 61c99ede7d31c1f661fba351765cac0f92c07856 2016-07-27 14:45:24 From: Min RK Date: 2016-07-27 14:45:24 Subject: [PATCH] use `$.text` to put latex on the page instead of `$.append` does proper escaping of latex that might be interpreted as HTML tags --- diff --git a/IPython/html/static/notebook/js/outputarea.js b/IPython/html/static/notebook/js/outputarea.js index 7c11755..1c3c552 100644 --- a/IPython/html/static/notebook/js/outputarea.js +++ b/IPython/html/static/notebook/js/outputarea.js @@ -678,7 +678,7 @@ var IPython = (function (IPython) { // be on the page. var type = 'text/latex'; var toinsert = this.create_output_subarea(md, "output_latex", type); - toinsert.append(latex); + toinsert.text(latex); element.append(toinsert); return toinsert; };