io.display.html
Displays rendered HTML to the action user.
Only supports presentational tags without custom script or styling. Any unsupported tags or attributes will be stripped.
tip
If you don't have HTML already, we recommend using io.display.markdown for more readable and maintainable code.
Usage
- TypeScript
- JavaScript
await io.display.html("Message body", {
html: "<p>Hello, <b>world</b>!</p>",
});
await io.display.html("Message body", {
html: "<p>Hello, <b>world</b>!</p>",
});
interval.com
Props
- TypeScript
- JavaScript
html
Required
string
The HTML content to display.
Returns
null
html
Required
string
The HTML content to display.
Returns
null
Supported tags
The following HTML tags are currently supported:
a
abbr
address
b
bdi
bdo
blockquote
br
caption
cite
code
data
dfn
div
em
h1
h2
h3
h4
h5
h6
hr
i
img
kbd
li
mark
nav
ol
p
picture
pre
q
rb
rp
rt
rtc
ruby
s
samp
small
span
strong
time
u
ul
var
video
wbr
Unsupported tags will be stripped from display, though their text content should remain.
Did this section clearly explain what you wanted to learn?