tag

open fun tag(tag: String, text: String): Text.HtmlBuilder

Insert a custom tag supplied by the user into the HTML string. Note that these tags are limited to the HTML tags that are available as part of `Html.fromHtml()`.

Return

The HtmlBuilder instance

Parameters

tag

The tag to insert, e.g. "div", "span", "p"

text

The text to insert