Comparing version 0.2.10 to 0.2.11
@@ -0,1 +1,5 @@ | ||
# 0.2.11 | ||
* Added `comb.string.escapeHtml` | ||
# 0.2.10 | ||
@@ -141,3 +145,3 @@ | ||
* Changed appenders to register themselves for dynamic appender creation | ||
* Updated docs | ||
* Updated docs | ||
@@ -148,3 +152,3 @@ #0.1.2/2012-07-17 | ||
* Added comb.array.multiply | ||
* Updated docs to use [coddoc](https://github.comb/doug-martin/coddoc) | ||
* Updated docs to use [coddoc](https://github.comb/doug-martin/coddoc) | ||
@@ -188,9 +192,9 @@ #0.1.1/2012-04-20 | ||
* Fixed logging appender level setting, before the appenders level would always be overriden on initialization | ||
#0.0.8 / 2012-02-9 | ||
* Added new MethodMissing plugin | ||
* Added new MethodMissing plugin | ||
* Bug fixes | ||
@@ -197,0 +201,0 @@ * Changed inflections to underscore between word boundaries and numbers and vice versa with camelize. |
@@ -1185,4 +1185,21 @@ var comb = exports, date, | ||
return ret; | ||
}, | ||
/** | ||
* Escapes an HTML string by replacing <>&" characters. | ||
* | ||
* @example | ||
* comb.string.escapeHtml('<script>alert("test")</script>'); // <script>alert("test")</script> | ||
* | ||
* @param {String} str The string to escape. | ||
*/ | ||
escapeHtml: function(str) { | ||
return String(str) | ||
.replace(/&/g, '&') | ||
.replace(/</g, '<') | ||
.replace(/>/g, '>') | ||
.replace(/"/g, '"') | ||
.replace(/'/g, '''); | ||
} | ||
}; | ||
{ | ||
"name": "comb", | ||
"description": "A framework for node", | ||
"version": "0.2.10", | ||
"version": "0.2.11", | ||
"keywords": ["OO", "Object Oriented", "Collections", "Tree", "HashTable", "Pool", "Logging", "Promise", "Promises", "Proxy"], | ||
@@ -6,0 +6,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2923101
88
11718