Files
noodl-docs/library/modules/custom-html/README.md
Eric Tuvesson 656e5fc8d2 chore: Upgrade Docusaurus from v2 to v3 (#52)
* chore: Upgrade Docusaurus from v2 to v3

* chore: Update "Test build" GH workflow

* fix: build

All markdown is processed as MDX

* fix: Broken links
2024-01-12 16:53:22 +01:00

2.8 KiB

title, hide_title
title hide_title
Custom HTML true

{/##head##/}

Custom HTML

This node allows you to add your own custom HTML markup to your visual tree. Common use cases include embeds or inline SVG's.

You can pass dynamic values to your markup by using template strings. {{ FillColor }} will create an input port named FillColor.

Security notice

This node also allows you to add script tags to your app. For security reasons all script tags are deactivated, but if you need to run a script (required for some embeds) you can turn off that fail safe. Please note that passing user input to your template string variables can be a security risk for you and your users, leaving you vulnerable to XSS Attacks.

{/##head##/}

Inputs

Data Description
HTML Your custom markup that will be rendered in the visual tree.
Run inline JavaScript Running scripts with user input can be dangerous. To provide an extra layer of security JavaScript in the custom HTML is prevented from running. Turn this on if your embed require scripts or if you are an advanced user with knowledge of XSS Attacks
Custom Variables Any variable in a template string will become an input. Only one variable per template string allowed