HTML Macro
Security considerations
HTML macros are disabled by default
The HTML macro will only be available if it has been enabled by an administrator. Enabling these macros can make your Confluence site vulnerable to cross-site scripting attacks.
Add this macro to your page
To add the HTML macro to a page:
- Unable to render {include} The included page could not be found.
- Choose HTML from the Development category.
- Choose Insert
- Paste the HTML embed code from the website you want to display into the body of the macro.
You can then publish your page to see the macro in action.
Change the macro parameters
This macro has no parameters.
Enabling the HTML Macro
The HTML macro is disabled by default. You'll need Confluence Administrator or System Administrator permissions to enable this macro.
Enabling these macros can make your Confluence site vulnerable to cross-site scripting attacks. You should only turn on these macros if you trust all your users not to attempt to exploit them. We strongly recommend leaving this macro disabled if you allow self-signed up or anonymous users to create content.
To enable the HTML macro:
Go to
.- Select System from the drop down and search for the Confluence HTML Macros system app.
- Expand the listing and enable the html (html-xhtml) module.
Other ways to add this macro
Add this macro as you type
Add this macro using wiki markup
Macro name: html
Macro body: Text, consisting of HTML code.
{html}<a href="http://www.atlassian.com">Click here</a> to see the <b>Atlassian</b> website.{html}