Permalink
Browse files

use `$.text` to put latex on the page

instead of `$.append`

does proper escaping of latex that might be interpreted as HTML tags
  • Loading branch information...
minrk committed Jul 26, 2016
1 parent f870faf commit e2ba4d66a08ae06d42ba9085b8a75ab8c4fad27b
Showing with 1 addition and 1 deletion.
  1. +1 −1 IPython/html/static/notebook/js/outputarea.js
@@ -754,7 +754,7 @@ define([
*/
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;
};

0 comments on commit e2ba4d6

Please sign in to comment.