chinedufn / percy

Build frontend browser apps with Rust + WebAssembly. Supports server side rendering.
https://chinedufn.github.io/percy/
Apache License 2.0
2.26k stars 84 forks source link

Support setting innerHTML on Client #117

Closed aubaugh closed 5 years ago

aubaugh commented 5 years ago

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.

chinedufn commented 5 years ago

Thanks for opening this issue!!

Implemented in https://github.com/chinedufn/percy/pull/118

Mind giving it a review then I'll get it merged and deployed in a new virtual-dom-rs version?

aubaugh commented 5 years ago

Looks great!