@tryghost/mg-clean-html
v0.9.3
Published
An opinionated set of cleaning steps, taking HTML full of inline styles and badly structured content and converting it into something cleaner.
Maintainers
Keywords
Readme
Clean HTML
An opinionated set of cleaning steps, taking HTML full of inline styles and badly structured content and converting it into something cleaner.
This is intended to run after platform -specific HTML changes have been made
Install
To use this package in your own project:
npm install @tryghost/mg-clean-html --save
or
pnpm add @tryghost/mg-clean-html
Usage
Develop
This is a mono repository, managed with Nx and pnpm workspaces.
Follow the instructions for the top-level repo.
git clonethis repo &cdinto it as usual- Run
pnpm installto install top-level dependencies.
Run
To run a local development copy, cd into this directory, and use pnpm dev instead of migrate like so:
pnpm dev curate --pathToZip /path/to/export.zipTest
pnpm lintrun just eslintpnpm testrun lint and testspnpm test:localbuild and run tests (for single-package development)
Copyright & License
Copyright (c) 2013-2026 Ghost Foundation - Released under the MIT license.
