ditojs / dito

Dito.js is a declarative and modern web framework with a focus on API driven development, based on Objection.js, Koa.js and Vue.js – Developed at Lineto by Jürg Lehni and made available by Lineto in 2018 under the MIT license
https://lineto.com
MIT License
82 stars 8 forks source link

Fix displaying of 0 in table cells #41

Closed puckey closed 3 years ago

puckey commented 3 years ago

When value = 0, escapeHtml(value) was returning empty string, because 0 is falsy.

lehni commented 3 years ago

@puckey thanks for this! I decided it should be fixed in escapeHtml() directly instead, see f32a5c35e0c6548f08c698fc3d2690c1067c13ea