r0man / sablono

Lisp/Hiccup style templating for Facebook's React in ClojureScript.
Eclipse Public License 1.0
694 stars 66 forks source link

Are non-breaking spaces supported? #171

Closed rdpfeiffer closed 7 years ago

rdpfeiffer commented 7 years ago

I thought that the following code snippet would work:

[:p "foo bar"]

and produce:

foo bar

But the   doesn't get interpreted in my Sablono code. Is there a different/better way to do this? Thanks!

r0man commented 7 years ago

@rdpfeiffer I'm only aware of this:

[:p {:dangerouslySetInnerHTML {:__html "foo bar"}}]
rdpfeiffer commented 7 years ago

@r0man OK, thanks. I'm a bit leery of the "dangerously" part, though. :-)