Render HTML
8 min
the render html connector provides a simple yet powerful service to convert html content into jpg images for easy visualization and sharing the render html connector is a powerful tool for swimlane turbine users, enabling the conversion of html content into jpg images for secure email visualization this connector is designed to enhance email security by allowing users to preview email content as images without the risk of executing harmful scripts or accessing external resources with options to block external requests, disable javascript, and control local file access, users can safely render html data while maintaining security protocols the connector's ability to customize the size of the output image and optionally display base64 data or processed html further extends its utility for diverse security automation tasks within swimlane turbine prerequisites to utilize the render html connector within the swimlane turbine platform, ensure you have the following http basic authentication credentials (if required by the endpoint) username the username for accessing the rendering service password the corresponding password for the provided username capabilities render html content to a jpg configurations http basic authentication authenticates using username and password configuration parameters parameter description type required url a url to the target host string optional username username string optional password password string optional verify ssl verify ssl certificate boolean optional http proxy a proxy to route requests through string optional actions render html converts the provided html content into a jpg image, primarily for email visualization endpoint method get input argument name type required description html data string required html data to render disable local file access boolean optional disable access to files on the local machine (might be needed for images) disable javascript boolean optional disable javascript block external requests boolean optional remove all html tags that make external requests handle blocked elements string optional to be used only when external request are blocked by default, source attribute is removed no images boolean optional no images in output, defaults to true show base64 boolean optional show base64 data for rendered file show html boolean optional show processed html used to render image max size string optional two integers, comma separated for the width & height of the thumbnail defaults to 800,600 form fields object optional parameter for render html files array optional parameter for render html file string optional parameter for render html file name string optional name of the resource output parameter type description file object rendered image from html file string output field file file name string name of the resource base64 data string response data html rendered string html content used for rendering example \[ { "file" { "file" "string", "file name" "example name" }, "base64 data" "string", "html rendered" "string" } ]