projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
98a6ebc
)
String.js
author
Alan Knowles
<alan@roojs.com>
Thu, 10 May 2018 07:14:38 +0000
(15:14 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 10 May 2018 07:14:38 +0000
(15:14 +0800)
String.js
patch
|
blob
|
history
diff --git
a/String.js
b/String.js
index
d533253
..
e2bdfe9
100644
(file)
--- a/
String.js
+++ b/
String.js
@@
-67,6
+67,20
@@
var s = String.format('<div class="{0}">{1}</div>', cls, text);
return Roo.util.Format.htmlEncode(args[i]);
});
}
return Roo.util.Format.htmlEncode(args[i]);
});
}
+ function unicodeClean() {
+ return this.replace(/[\s\S]/g, function(character) {
+ if (character.charCodeAt()< 256) {
+ return character;
+ }
+ try {
+ encodeURIComponent(character);
+ } catch(e) {
+ return '';
+ }
+ return character;
+ });
+
+
});
/**
});
/**