fix $.h regression in js refactor
Change-Id: I2cd31798aca5464b09392c53498208d9a205f742 Reviewed-on: https://gerrit.instructure.com/5852 Reviewed-by: Ryan Shaw <ryan@instructure.com> Tested-by: Hudson <hudson@instructure.com>
This commit is contained in:
parent
bda484aef6
commit
766ac9b80f
|
@ -67,14 +67,14 @@ I18n.scoped('instructure', function(I18n) {
|
|||
};
|
||||
|
||||
var $dummyElement = $('<div/>');
|
||||
$.htmlEscape = function(str) {
|
||||
$.htmlEscape = $.h = function(str) {
|
||||
return str && str.htmlSafe ?
|
||||
str.toString() :
|
||||
$dummyElement.text(str).html();
|
||||
}
|
||||
|
||||
// escape all string values (not keys) in an object
|
||||
$.htmlEscapeValues = $.h = function(obj) {
|
||||
$.htmlEscapeValues = function(obj) {
|
||||
var k,v;
|
||||
for (k in obj) {
|
||||
v = obj[k];
|
||||
|
|
Loading…
Reference in New Issue