Create an element from trusted HTML/XML code.
Warning: This element cannot have children added after being created. They will be added as siblings instead.
assert(elemTrusted("<p>test</p>") == "<p>test</p>"); assert( elem!"p"( elemTrusted("<b>foo</b>bar"), ) == "<p><b>foo</b>bar</p>" ); assert( elemTrusted("<b>test</b>").add("<b>foo</b>") == "<b>test</b><b>foo</b>" );
See Implementation
Create an element from trusted HTML/XML code.
Warning: This element cannot have children added after being created. They will be added as siblings instead.