When a string of HTML is inserted into a view, only the server renders the HTML properly. The client will display the string of HTML with escaped characters, showing the HTML tags as text.
This can be easily replicated by inserting { "<strong>test</strong>" } into the output of some view's render function. It would be nice to have the client render such strings similarly by setting innerHTML.
When a string of HTML is inserted into a view, only the server renders the HTML properly. The client will display the string of HTML with escaped characters, showing the HTML tags as text.
This can be easily replicated by inserting
{ "<strong>test</strong>" }
into the output of some view's render function. It would be nice to have the client render such strings similarly by settinginnerHTML
.