Skip to content

Commit

Permalink
v0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
arguiot committed Jul 4, 2017
1 parent fb6b9fe commit be3cb43
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 4 deletions.
9 changes: 8 additions & 1 deletion dist/display.es6.js
Expand Up @@ -30,7 +30,14 @@ class DisplayJS {
}, push);
}
}
xss(str) {
xss (str) {
var lt = /</g,
gt = />/g,
ap = /'/g,
ic = /"/g;
return str.toString().replace(lt, "&lt;").replace(gt, "&gt;").replace(ap, "&#39;").replace(ic, "&#34;");
}
xssURI(str) {
return encodeURI(str);
}
target(callback) {
Expand Down
9 changes: 9 additions & 0 deletions dist/display.js
Expand Up @@ -51,6 +51,15 @@ var DisplayJS = function () {
}, {
key: "xss",
value: function xss(str) {
var lt = /</g,
gt = />/g,
ap = /'/g,
ic = /"/g;
return str.toString().replace(lt, "&lt;").replace(gt, "&gt;").replace(ap, "&#39;").replace(ic, "&#34;");
}
}, {
key: "xssURI",
value: function xssURI(str) {
return encodeURI(str);
}
}, {
Expand Down
2 changes: 1 addition & 1 deletion dist/display.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "display.js",
"version": "v0.2.0",
"version": "v0.2.1",
"description": "A simple framework for building ambitious UI, without thinking about how the text will be displayed.",
"main": "dist/display.min.js",
"directories": {
Expand Down
9 changes: 8 additions & 1 deletion src/display.js
Expand Up @@ -30,7 +30,14 @@ class DisplayJS {
}, push);
}
}
xss(str) {
xss (str) {
var lt = /</g,
gt = />/g,
ap = /'/g,
ic = /"/g;
return str.toString().replace(lt, "&lt;").replace(gt, "&gt;").replace(ap, "&#39;").replace(ic, "&#34;");
}
xssURI(str) {
return encodeURI(str);
}
target(callback) {
Expand Down

0 comments on commit be3cb43

Please sign in to comment.