Skip to content

Commit

Permalink
Fixed bug in escapeHtml method (#774)
Browse files Browse the repository at this point in the history
* Fixed bug in `escapeHtml` method

* Added PR number
  • Loading branch information
trickreich authored and danrot committed Sep 26, 2017
1 parent 1c66a89 commit 8a4fea7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# CHANGELOG for husky

* dev-master
* HOTFIX #774 Fixed bug in `escapeHtml` method

* 0.30.1 (2017-07-10)
* HOTFIX #771 Added save url to storage for update-url event

Expand Down
4 changes: 4 additions & 0 deletions dist/husky.js
Original file line number Diff line number Diff line change
Expand Up @@ -28372,6 +28372,10 @@ define('services/husky/util',['sprintf'], function(sprintf) {
* @returns {string}
*/
Util.prototype.escapeHtml = function(string) {
if (!string) {
return string;
}

return String(string).replace(/[&<>"'\/]/g, function(s) {
return entityMap[s];
});
Expand Down
2 changes: 1 addition & 1 deletion dist/husky.min.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions husky_services/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,10 @@ define(['sprintf'], function(sprintf) {
* @returns {string}
*/
Util.prototype.escapeHtml = function(string) {
if (!string) {
return string;
}

return String(string).replace(/[&<>"'\/]/g, function(s) {
return entityMap[s];
});
Expand Down

0 comments on commit 8a4fea7

Please sign in to comment.