Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
🚑 (renderer): Fix #656 - support numbers in purifyCSS helper
Browse files Browse the repository at this point in the history
  • Loading branch information
GitSquared committed Dec 14, 2019
1 parent 2f8a388 commit 85a808b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/_renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ window._escapeHtml = text => {
return text.replace(/[&<>"']/g, m => {return map[m];});
};
window._purifyCSS = str => {
if (typeof str === "undefined") return "";
if (typeof str !== "string") {
str = str.toString();
}
return str.replace(/[<]/g, "");
};
window._delay = ms => {
Expand Down

0 comments on commit 85a808b

Please # to comment.