unicode array rendering
thipages opened this issue · comments
Hi,
I have unicode characters in an array and want to display them, but I got the string only except if I do not use the interpolation mechanism (which I need), see codepen here
Can you help?
Thank you.
import {render, html} from '//unpkg.com/uhtml?module';
const codes = Array(3).fill('').map((v,i)=>`&#${6016+i};`)
render (
document.body,
html`
${codes.map(code=>html`<div>${code}</div>`)}
ក
`
)
output (like)
ក
ខ
គ
ក
working, I have updated codepen.
Have a good day!