html
html(text)
Interpret input text as HTML-formatted text.
For certain pieces of text (like in column labels or table headings) we may want to express them as raw HTML. In fact, with HTML, anything goes so it can be much more than just text. The html()
function will guard the input HTML against escaping, so, your HTML tags will come through as HTML when rendered.
Parameters
Name | Type | Description | Default |
---|---|---|---|
text |
str |
The text that is understood to contain HTML formatting. | required |
Examples
See GT.tab_header()
.