logo
pub fn inner_html<V, MSG>(
    inner_html: V
) -> Attribute<&'static str, &'static str, AttributeValue<MSG>> where
    V: Into<Value> + Clone
Expand description

set the inner html of this element without comparing in the diff this always sets the value This is for optimization purposes and will lead to some hacks in the implementation

Examples

use sauron::prelude::*;

let html:Node<()> =
    div(vec![inner_html("<p>This is a paragraph <b>injected</b> into a <strong>div</strong> via <i>inner_html</i></p>")], vec![]);