parent
e5d7304f66
commit
4e459de01c
|
@ -1,3 +1,7 @@
|
||||||
|
2.4.2 / 2024-09-12
|
||||||
|
==================
|
||||||
|
* 优化字符串转义
|
||||||
|
|
||||||
2.4.0 / 2024-08-22
|
2.4.0 / 2024-08-22
|
||||||
==================
|
==================
|
||||||
* 增加Set的一系列原型方法`union、equal、difference、symmetricDifference、intersection、isSubsetOf、isSupersetOf、isDisjointFrom`
|
* 增加Set的一系列原型方法`union、equal、difference、symmetricDifference、intersection、isSubsetOf、isSupersetOf、isDisjointFrom`
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "es.shim",
|
"name": "es.shim",
|
||||||
"version": "2.4.1",
|
"version": "2.4.2",
|
||||||
"description": "实现部分新API, 以及一些常用的扩展方法",
|
"description": "实现部分新API, 以及一些常用的扩展方法",
|
||||||
"keyworks": [
|
"keyworks": [
|
||||||
"es5",
|
"es5",
|
||||||
|
|
|
@ -93,6 +93,7 @@ if (!String.prototype.tohtml) {
|
||||||
return this.replace(/</gi, '<')
|
return this.replace(/</gi, '<')
|
||||||
.replace(/>/gi, '>')
|
.replace(/>/gi, '>')
|
||||||
.replace(/"/gi, '"')
|
.replace(/"/gi, '"')
|
||||||
|
.replace(/"/g, '"')
|
||||||
.replace(/'/g, "'")
|
.replace(/'/g, "'")
|
||||||
.replace(/&/gi, '&')
|
.replace(/&/gi, '&')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue