-
I ended up getting this to work with badly-written D3, but I'd like to understand why my original attempt using I'm dynamically generating a reference list for my project, and I wanted to add it as an unordered list. I create an array of strings, each of which is generated from several parts of the data, including html markup. If I then do: const htmlTest = pubList.sort().map(item => html`<li>${item}</li>`); display(html`<ul>${htmlTest}</ul>`) I successfully get a dynamically generated unordered list of the items, but all the HTML formatting is included in the string, rather than being interpreted, e.g.:
when in fact it should look like:
I assume the problem lies somewhere in the interaction of |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
yes, see #896 and unsafe_html instead (it does what it says ;-) ) |
Beta Was this translation helpful? Give feedback.
yes, see #896 and unsafe_html instead (it does what it says ;-) )