=== ConvertToHTML Page Importer & Embedder ===
Contributors: converttohtml
Tags: html importer, html embed, custom html, iframe, page importer
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Stable tag: 1.0.0-beta.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Import an HTML file as an editable WordPress draft page or create a reusable sandboxed embed shortcode.

== Description ==

ConvertToHTML Page Importer & Embedder provides two workflows:

* Import the body of an .html or .htm file into a normal draft Page.
* Preserve a document's HTML and CSS inside an isolated iframe using a generated shortcode.
* Create both versions from one upload.

For security, uploaded scripts, event-handler attributes and active embedded elements are removed from shortcode embeds. The iframe is also sandboxed without script permissions.

== Installation ==

1. In WordPress, open Plugins > Add New > Upload Plugin.
2. Select the plugin ZIP, install it and activate it.
3. Open Tools > HTML Page Importer.
4. Choose an .html or .htm file, select a mode and click Import HTML.

== Frequently Asked Questions ==

= Can I edit an imported HTML page? =

Yes. Choose Editable draft page. The imported body content is saved as a normal WordPress draft Page.

= Will CSS and JavaScript be imported? =

The sandboxed embed preserves inline and embedded CSS. JavaScript is removed. The editable draft uses WordPress's allowed post HTML rules.

= Will relative images and stylesheets work? =

Not automatically. Relative assets must be uploaded and their URLs updated. Absolute public URLs can continue loading from their original source.

= Why is the embed sandboxed? =

Sandboxing prevents an uploaded document from executing scripts or gaining access to the surrounding WordPress page.

== Changelog ==

= 1.0.0-beta.1 =

* Initial beta release.
* Added editable draft imports.
* Added sandboxed embed shortcodes.
* Added clear completion and error notices.
