kbrsh/moon

HTML parse from data object

grimaldodev opened this issue · 3 comments

Hi Im getting the data prom an api but the content is html formatted, my question is how I parse to render correctly because I'm getting the string not the html inside my view:

{
content:" <p>Hi,</p>↵<p>DigitalOnUs Inc. top 20 fastest IT Services co. as per Inc.500 2018 ratings.</p>↵<p>As part of our ever growing requirements, "
}
kbrsh commented

In Moon v1, there is no current way of directly setting innerHTML. I am planning support for this with an innerHTML attribute.

<div innerHTML={content}></div>

@kbrsh excuse me, Is there a way to set innerHTML for a dom now?

kbrsh commented

This was implemented in c206837.