##// END OF EJS Templates
add utils.escape_html
MinRK -
Show More
@@ -460,6 +460,12 b' IPython.utils = (function (IPython) {'
460 460 };
461 461
462 462
463 var escape_html = function (text) {
464 // escape text to HTML
465 return $("<div/>").text(text).html();
466 }
467
468
463 469 var get_body_data = function(key) {
464 470 // get a url-encoded item from body.data and decode it
465 471 // we should never have any encoded URLs anywhere else in code
@@ -536,6 +542,7 b' IPython.utils = (function (IPython) {'
536 542 url_join_encode : url_join_encode,
537 543 encode_uri_components : encode_uri_components,
538 544 splitext : splitext,
545 escape_html : escape_html,
539 546 always_new : always_new,
540 547 browser : browser,
541 548 platform: platform,
General Comments 0
You need to be logged in to leave comments. Login now