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 | var get_body_data = function(key) { |
|
469 | var get_body_data = function(key) { | |
464 | // get a url-encoded item from body.data and decode it |
|
470 | // get a url-encoded item from body.data and decode it | |
465 | // we should never have any encoded URLs anywhere else in code |
|
471 | // we should never have any encoded URLs anywhere else in code | |
@@ -536,6 +542,7 b' IPython.utils = (function (IPython) {' | |||||
536 | url_join_encode : url_join_encode, |
|
542 | url_join_encode : url_join_encode, | |
537 | encode_uri_components : encode_uri_components, |
|
543 | encode_uri_components : encode_uri_components, | |
538 | splitext : splitext, |
|
544 | splitext : splitext, | |
|
545 | escape_html : escape_html, | |||
539 | always_new : always_new, |
|
546 | always_new : always_new, | |
540 | browser : browser, |
|
547 | browser : browser, | |
541 | platform: platform, |
|
548 | platform: platform, |
General Comments 0
You need to be logged in to leave comments.
Login now