Closed otomist closed 2 months ago
Hi @frumsy,
This is intended behavior. VanJS doesn't process HTML escape sequence while constructing the DOM tree. To construct DOM nodes with
, you can consider specifying the unicode character in the string, such as span("\u00A0")
(\u00A0
is the unicode character for
).
@Tao-VanJS I see. Unicode character works nice and looks a lot cleaner. Thank you! closing the issue
I need to dynamically add spaces to the end of some words in my app. I was trying to do this:
However it simply renders the text as: ''\ " instead of " ".
I was able to fix this by doing the following:
However, I expected this to work with the default span() tag.