Closed puckey closed 3 years ago
When value = 0, escapeHtml(value) was returning empty string, because 0 is falsy.
value = 0
escapeHtml(value)
0
@puckey thanks for this! I decided it should be fixed in escapeHtml() directly instead, see f32a5c35e0c6548f08c698fc3d2690c1067c13ea
escapeHtml()
When
value = 0
,escapeHtml(value)
was returning empty string, because0
is falsy.