Create a DOM element safely with automatic content escaping.
The HTML tag name to create (e.g. "div", "span").
"div"
"span"
Optional element properties: className, id, textContent, attributes, children.
The created DOM element with safely escaped content.
Create a DOM element safely with automatic content escaping.