Fork me on GitHub
#reagent
<
2016-10-19
>
dev-hartmann10:10:23

hi fellow reagent users, i have a short question: i know that in order to properly escape strings in hiccup you need to use hiccup/h (Alias for hiccup.util/escape-html), is this necessary in reagent components as well? As I have understood, reagent provides hiccup- like syntax to create components, not hiccup explicitly.

_kontrarian11:10:38

Anyone successfully integrated reagent with draft js? I’ve been hearing bad things

gadfly36115:10:31

@dev-hartmann Not sure if this is what you are getting at or not, but here is an example of how to display html: [:div {:dangerouslySetInnerHTML {:__html "<b>I am bold</b>"}}]

mikethompson18:10:14

@dev-hartmann this also works for entities: first (:require [goog.string :as gstring]) then [:div "hello" (gstring/unescapeEntities "&nbsp;") "there"]