Problem
You cannot simple use
in a attributes.text(...)
. There’s a couple different ways to do this.
1. Copy paste character into editor
// <-- U+00A0, non-breaking space.
2. Use escape code + codepoint code
\u{a0}
Docs: https://tour.gleam.run/basics/strings/
3. Use a package such as glentities
by nicd
import glentities
glentities.encode(" ", glentities.HTMLBody)