For example, I subscribe a post by ID, it has title and content values. “title” is plain text, so I can use {{title}} to display it directly. But “content” is strings like <p>asdf <i>sadaf asdf</i></p>
.
I’ve tried using JQuery parseHTML in helper function but not work. I guess inside helper function, I cannot select the outside template’s $("#post-content").
I’ve also tried onRender, but don’t know how to find post->content inside the function.
So, what is the proper way to render HTML strings (this.content) into DOM elements?
Thanks a lot!