master 2.4.2
yutent 2024-09-12 10:56:54 +08:00
parent e5d7304f66
commit 4e459de01c
3 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2.4.2 / 2024-09-12
==================
* 优化字符串转义
2.4.0 / 2024-08-22
==================
* 增加Set的一系列原型方法`union、equal、difference、symmetricDifference、intersection、isSubsetOf、isSupersetOf、isDisjointFrom`

View File

@ -1,6 +1,6 @@
{
"name": "es.shim",
"version": "2.4.1",
"version": "2.4.2",
"description": "实现部分新API, 以及一些常用的扩展方法",
"keyworks": [
"es5",

View File

@ -93,6 +93,7 @@ if (!String.prototype.tohtml) {
return this.replace(/&lt;/gi, '<')
.replace(/&gt;/gi, '>')
.replace(/&quot;/gi, '"')
.replace(/&#34;/g, '"')
.replace(/&#39;/g, "'")
.replace(/&amp;/gi, '&')
}