The HTML Include macro allows you to include the contents of an external HTML file in a Confluence page.

警告: Web ページに不明な HTML を含めることは危険です。

HTML can contain active scripting components. This means that 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.

HTML インクルード マクロを使用する

ページに HTML インクルード マクロを挿入する方法

  1. In the Confluence editor, choose Insert > Other Macros.
  2. Find and select the required macro.

パラメーター

When editing, you can click on the macro placeholder and choose Edit to display the parameters for this macro in the Macro Browser.

Parameters are options that you can set for Confluence macros to control the content or format of the macro output. The table below lists parameters for this macro that can be set in the Macro Browser.

パラメーター既定説明
HTML Page's URLなしインクルードするページの URL。

トラブルシューティング

  • The HTML Include macro will only be available if it has been enabled by your Confluence administrator. Also, your Confluence Administrator can define a whitelist of trusted URLs. You will see an error message on the Confluence page if the included URL is not in the whitelist.
  • You can only use the HTML Include macro for pages with absolute links. If you use the macro to include an HTML page that has relative links, navigating those links in the wiki results in a 'Page Not Found' error. See CONF-6567.

関連トピック

HTML Macro
Working with Macros
Configuring a URL Whitelist

Take me back to Confluence User's Guide