This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-30
Channels
- # admin-announcements (1)
- # announcements (1)
- # babashka (8)
- # bristol-clojurians (1)
- # calva (36)
- # clojure (115)
- # clojure-europe (5)
- # clojure-italy (4)
- # clojure-nl (3)
- # clojure-norway (3)
- # clojure-uk (161)
- # clojuredesign-podcast (3)
- # clojurescript (71)
- # core-async (34)
- # cursive (26)
- # datomic (43)
- # docker (2)
- # emacs (24)
- # figwheel-main (1)
- # fulcro (36)
- # graalvm (7)
- # immutant (2)
- # jackdaw (1)
- # jobs (2)
- # leiningen (8)
- # luminus (5)
- # off-topic (29)
- # onyx (1)
- # other-languages (5)
- # pathom (6)
- # pedestal (3)
- # reagent (11)
- # ring (8)
- # shadow-cljs (42)
- # spacemacs (17)
- # specter (6)
- # tools-deps (80)
- # videos (1)
The only way is probably via dangerouslySetInnerHTML
, which also requires knowing the parent element.
Seems like you could also create a custom component for that: https://stackoverflow.com/a/41131326/564509 A little bit more involved than just using Hiccup.
@U2FRKM4TW Yeah, I also found that same resource after googling it. Think I’m gonna attempt something like that 😉
@U2FRKM4TW I need to embed XML inside an HTML page as HTML custom elements and want to be as faithful to the source as possible. It’s not really necessary, I guess, but why not? Kind of a fun exercise ;)
it’s an XML string that I’m parsing with the DOM api and then converting to hiccup. I have a bunch of linguists manually transcribing old letters from the 1930s into this XML format and I’m tasked with creating a reader for it in the browser.