We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a00945c commit aa15f3dCopy full SHA for aa15f3d
src/builtin/filters/html.ts
@@ -14,7 +14,7 @@ const unescapeMap = {
14
}
15
16
function escape (str: string) {
17
- return !!str ? String(str).replace(/&|<|>|"|'/g, m => escapeMap[m]) : ""
+ return str ? String(str).replace(/&|<|>|"|'/g, m => escapeMap[m]) : ''
18
19
20
function unescape (str: string) {
0 commit comments