The {html} macro allows you to use HTML code within a Confluence page.

The {html-include} macro allows you to include the contents of an HTML file in a Confluence page.

Caution: Including unknown HTML inside a web page is dangerous.

Because HTML can contain active scripting components, it would be possible for a malicious attacker to present a user of your site with script that their web browser would believe came from you. Such code could be used, for example, to steal a user's authentication cookie and give the attacker their Confluence login password.

By default, the HTML macros are disabled. You should only turn on these macros if you trust all your users not to attempt to exploit them.

You need System Administrator permissions in order to perform this function.

(warning) The information on this page does not apply to Confluence OnDemand.

To enable the HTML macros:

  1. Choose the cog icon  at top right of the screen, then choose Confluence Admin.
  2. Choose Manage Add-ons in the left-hand panel. This will display the installed add-ons on this Confluence installation.
  3. Choose Show System Add-ons.
  4. Choose Confluence HTML Macros
  5. Expand the x of 11 modules enabled to see the list of modules in the plugin.
  6. Enable one or both of the following modules:

You will need to configure one or more allowed sources for this macro by adding them to the whitelist. 

  • No labels