The {html-include} macro allows you to include the content of an HTML file in a Confluence page. This page tells you how to enable the macro, so that it is available on your Confluence site. For help on using the macro, see HTML Include Macro.

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

Icon

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.

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

Enabling the HTML Macros

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.

(info) You need to have System Administrator permissions in order to perform this function.

To enable the HTML macros,

  1. Choose the cog icon  at top right of the screen, then choose Confluence Admin.
  2. Select 'Plugins' in the left-hand panel. This will display the installed plugins active for this Confluence installation.
  3. Click' 'HTML macros', then click 'Enable Plugin'.
Icon

If the plugin is already enabled please click on the + sign to expand the modules. Ensure that each relevant module is enabled by hovering over the "disabled" dialog and clicking the enable button that appears.


To embed an external page,

Use the following syntax:

{html-include:url=http://www.example.com}


To include HTML inline,

Use the following syntax:

{html}
<b>I like cheese</b>
{html}
RELATED TOPICS

HTML Include Macro