Function sauron_core::html::safe_html
source · pub fn safe_html<S, MSG>(s: S) -> Node<MSG>where
S: ToString,
Expand description
Create an html and instruct the DOM renderer and/or DOM patcher that the operation is safe.
Note: this operation doesn’t sanitize the html code. It is your responsibility as a programmer to sanitize the input here.
Example
use sauron::{*,html::*};
let node: Node<()> = safe_html("<div>In a safe html</div>");