=== NonStop Content Exporter ===
Contributors: nonstopdev
Donate link: https://nonstopdev.us
Tags: export, content, page builder, html, posts
Requires at least: 6.0
Tested up to: 7.1
Stable tag: 2.2.2
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Export clean WordPress page and post content as HTML or plain text — no page builder code, no noise.

== Description ==

**NonStop Content Exporter** gives you one-click, clean exports of your WordPress **pages and posts** — stripping away every Elementor div, Divi wrapper, Beaver Builder shortcode, and builder remnant, leaving only the words and structure that actually matter.

Paste the result straight into Google Docs, Microsoft Word, or any content tool. No manual cleanup required.

= Why you need it =

Page builders produce HTML that is unreadable when pasted anywhere. Copying a page from your browser gives you either raw markup or completely unformatted text. NonStop Content Exporter solves both problems: it runs your content through WordPress's own content filters, rescues FAQ accordions, decodes obfuscated emails, and hands you back clean semantic HTML or plain text — instantly, as a named download.

= Features =

* Export published **Pages** and **Posts** as clean HTML or plain text
* Strips all page builder wrapper divs, structural tags, and unexpanded shortcodes
* **FAQ accordion rescue** — detects and converts Elementor (native + toggle), Divi toggle, Beaver Builder accordion, Yoast FAQ block, and HTML5 `<details>` elements into readable Q&A pairs before any markup is stripped
* Falls back to JSON-LD FAQPage schema when no HTML accordion blocks are found — never loses FAQ content
* Decodes Cloudflare email obfuscation (XOR `data-cfemail` encoding) so email addresses are preserved as plain text
* Strips Gravity Forms injected scripts, review-widget markup, and similar third-party noise
* Converts image tags to bracketed alt-text notes: `[Image: description]`
* Batch export — select multiple items and download them all in one file
* File is named after your site automatically (e.g. `my-site-content-export.html`)

= Do more with Pro =

Additional features are available in **NonStop Content Exporter Pro**:

* Export **custom post types** and **WooCommerce products**
* **Markdown (.md) export** for Notion, Obsidian, and GitHub
* **Copy to clipboard** — paste clean content without downloading a file
* **Section exclusion** — skip individual sections by heading

Learn more at [nonstopdev.us](https://nonstopdev.us/plugin/nonstop-content-exporter/).

= Privacy =

NonStop Content Exporter does not collect, transmit, or store any data about your site or its content. All processing happens locally on your server, and the free version bundles no third-party services or SDKs. NonStop Content Exporter Pro is an optional, separate download.

== Installation ==

1. Upload the `nonstop-content-exporter` folder to `/wp-content/plugins/`, or install directly from **Plugins → Add New**.
2. Activate the plugin through **Plugins → Installed Plugins**.
3. Go to **Tools → NonStop Content Exporter** to start exporting.

No configuration is required.

== Frequently Asked Questions ==

= Which page builders are supported? =

Elementor, Divi, Beaver Builder, WPBakery, Bricks, Kadence, GeneratePress, Oxygen, and any builder that uses standard div-based wrapper markup. FAQ rescue covers the specific accordion widget patterns each builder produces.

= Does it work with the Gutenberg block editor? =

Yes. Gutenberg content goes through WordPress's standard `the_content` filter, so all standard blocks export cleanly. Builder-specific block wrappers are stripped the same way as classic builder markup.

= Does it export drafts or private content? =

No — only published content is listed and exported. This is intentional to prevent accidental export of unpublished material.

= The exported HTML still has some classes on it — is that expected? =

The plugin strips all `class`, `id`, and `style` attributes from the semantic tags it keeps (headings, paragraphs, lists, tables, etc.). If you see leftover attributes, please open a support thread with an example of the page and we'll add a fix.

= Can I export custom post types or WooCommerce products? =

Custom post types and WooCommerce products are supported in NonStop Content Exporter Pro. The free version exports Pages and Posts.

= Is the plugin compatible with multisite? =

Yes — it works on individual sites within a network.

= Where can I get help? =

Use the [WordPress.org support forum](https://wordpress.org/support/plugin/nonstop-content-exporter/).

== Screenshots ==

1. The Export tab — content picker with Pages/Posts tabs, format selector, and export button.
2. The Settings tab — choose the default export format.

== Changelog ==

= 2.2.2 =
* Updated the Go Pro hero illustration
* Tested up to WordPress 7.1

= 2.2.1 =
* Redesigned the "Go Pro" tab with a polished hero and feature toolkit
* Updated Pro/landing links to nonstopdev.us/plugin/nonstop-content-exporter/

= 2.2.0 =
* Removed the Freemius SDK from the free version — no third-party service, lighter footprint
* Added a dedicated "Go Pro" tab describing Pro features and linking to the plugin page
* Free version stands down automatically if the Pro edition is active (no conflicts)

= 2.1.0 =
* Renamed the plugin to NonStop Content Exporter
* Free version now exports both Pages and Posts as clean HTML or plain text
* Custom post types, WooCommerce products, Markdown, clipboard copy, and section exclusion moved to the separate Pro version
* Removed all license-gated code from the free plugin
* Moved all admin CSS/JS to enqueued asset files; removed inline style output from exports
* Full output-escaping pass across the plugin

= 2.0.1 =
* Fixed section exclusion incorrectly removing all content on a normal export
* Code-quality pass for Plugin Check: output escaping, `wp_strip_all_tags()`, and input unslashing

= 2.0.0 =
* Multi-file class architecture (Exporter, Admin, Plugin, Settings)
* Modernised admin UI: card layout, tabbed navigation, format picker cards
* Native WordPress Settings API settings page
* AJAX post-type loading

= 1.2.0 =
* Added Yoast FAQ block (`schema-faq-section`) detection
* Fixed duplicate FAQ output when both HTML accordion blocks and JSON-LD schema are present
* Improved Cloudflare email decode to handle odd-length hex strings gracefully

= 1.0.0 =
* Initial release — export published pages as clean HTML or plain text, with page builder markup stripping and FAQ accordion rescue

== Upgrade Notice ==

= 2.1.0 =
Renamed to NonStop Content Exporter. The free version now exports Pages and Posts; advanced features are available in Pro.
