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
- Python
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>",
});
await io.display.html("Message body",
html="<p>Hello, <b>world</b>!</p>"
);
interval.com
Props
- TypeScript
- JavaScript
- Python
html
Required
string
The HTML content to display.
Returns
null
html
Required
string
The HTML content to display.
Returns
null
html
Required
str
The HTML content to display.
Returns
None
Supported tags
The following HTML tags are currently supported:
aabbraddressbbdibdoblockquotebrcaptioncitecodedatadfndivemh1h2h3h4h5h6hriimgkbdlimarknavolppicturepreqrbrprtrtcrubyssampsmallspanstrongtimeuulvarvideowbr
Unsupported tags will be stripped from display, though their text content should remain.