html!{
<div>{" "}</div>
}
This would show a div with literal in it instead of a non-breaking space.
How can I properly render this?
Non-breaking space is a normal unicode character with its own escape sequence in Rust string literals. If you use that it will presumably be converted to the html escape sequence like everything else.
On September 20, 2018 11:05:51 AM GMT+02:00, FrontMage notifications@github.com wrote:
html!{ <div>{" "}</div> }This would show a div with
literal in it instead of a
non-breaking space.How can I properly render this?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/DenisKolodin/yew/issues/405
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
@untitaker {"U+00A0"} is not working. I assume I'm not supposed to use String in there?
You need \u{00a0}, see https://doc.rust-lang.org/std/primitive.char.html
Thank you, sir, perfectly solved. Closing.
Most helpful comment
You need \u{00a0}, see https://doc.rust-lang.org/std/primitive.char.html