HTML Utils Component
Helpful HTML-related functions for building HTML documents and HTML-based emails.
Component key: html-utils · Changelog ↓Description
The HTML Utils component provides helpful functions for building and formatting HTML documents.
Actions
Convert to Inline CSS
Convert an HTML document to use inline styles | key: convertInlineCss
| Input | Notes | Example |
|---|---|---|
| HTML |
This action leverages the juice NPM package to apply CSS defined in <style> tags to inline HTML elements.
Example Payload for Convert to Inline CSS⤓
Format HTML
Apply prettier to an HTML document | key: formatHtml
| Input | Notes | Example |
|---|---|---|
| HTML |
Example Payload for Format HTML⤓
Get HTML from URL
Fetch HTML content from a URL | key: getHtmlFromUrl
| Input | Notes | Example |
|---|---|---|
| URL | The URL to fetch HTML content from |
HTML to Plaintext
Convert an HTML document to plaintext | key: htmlToPlaintext
| Input | Notes | Example |
|---|---|---|
| HTML |
Strip HTML Tags
Remove all HTML tags from a string | key: stripHtmlTags
| Input | Notes | Example |
|---|---|---|
| HTML |