Skip to content

Commit

Permalink
Minor tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Nov 24, 2017
1 parent f05fc2f commit e5bc862
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion www/assets/js/app.es6
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
}

function sanitize (arg = "") {
let tmp = typeof arg !== "string" ? JSON.stringify(arg) : arg;
let tmp = typeof arg !== "string" ? JSON.stringify(arg, null, 2) : arg;

return tmp.replace(/\</g, "&lt;").replace(/\>/g, "&gt;");
}
Expand Down
2 changes: 1 addition & 1 deletion www/assets/js/app.js

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

0 comments on commit e5bc862

Please sign in to comment.