#![cfg(feature = "alloc")]
#[macro_use]
extern crate horrorshow;
use horrorshow::Escape;
#[test]
fn test_escape() {
let html = html! {
span : Escape(html! {
b : "some <span>text</span>";
})
}
.to_string();
assert_eq!(
html,
"<span><b>some &lt;span&gt;text&lt;/span&gt;</b></span>"
);
}