tag
fun StringBuilder.tag( tag: String, vararg attributes: Pair<String, String>, body: StringBuilder.() -> Unit)
Content copied to clipboard
Output an XML tag with the given tag name and attributes supplied as Pairs. The values of the attributes will be escaped and quoted. Then run the body function and output a matching close tag. If at exception is thrown by the body, still attempt to output the close tag.