This page last changed on May 15, 2008 by edawson.

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

CAUTION: Including unknown HTML inside a webpage 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.

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.

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

To enable the HTML macros,

  1. Go to the Confluence 'Administration Console'. To do this:

    • Open the 'Browse' menu and select 'Confluence Admin'. The 'Administration Console' view will open.
  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'

Usage Example

To embed an external page:

{html-include:url=http://www.example.com}
RELATED TOPICS
Editing and Removing macros
Enabling HTML macros
Enabling the html-include Macro
Include Page Macro
User Macros
Writing Macros

Document generated by Confluence on Aug 07, 2008 19:05