# posthtml-remove-tags **Repository Path**: mirrors_posthtml/posthtml-remove-tags ## Basic Information - **Project Name**: posthtml-remove-tags - **Description**: A posthtml plugin for removing tags - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2025-09-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # posthtml-remove-tags > A [posthtml](https://github.com/posthtml) A posthtml plugin for removing tags [](https://travis-ci.org/GitScrum/posthtml-remove-tags)[](https://ci.appveyor.com/project/GitScrum/posthtml-remove-tags)[]()[](https://www.npmjs.com/package/posthtml-remove-tags)[](https://david-dm.org/gitscrum/posthtml-remove-tags)[](https://github.com/sindresorhus/xo)[](https://coveralls.io/r/GitScrum/posthtml-remove-tags) [](https://www.npmjs.com/package/posthtml-remove-tags)[](https://www.npmjs.com/package/posthtml-remove-tags)[](http://packagequality.com/#?package=posthtml-remove-tags) ## Why? Essential for removing unwanted or tags do not pass validation ## Install ```bash npm i -S posthtml posthtml-remove-tags ``` > **Note:** This project is compatible with node v4+ ## Usage ```js import {readFileSync, writeFileSync} from 'fs'; import posthtml from 'posthtml'; import removeTags from 'posthtml-remove-tags'; const html = readFileSync('input.html', 'utf8'); posthtml() .use(removeTags({tags: ['style', 'script']})) .process(html) .then(result => { writeFileSync('output.html', result.html); }); ``` Returns the html without the tags listed in option ## Example #### input.html ```html
``` #### output.html ```html ``` ## Options #### `tags` Type: `Array` Default: `[]` Description: *The list of tags to be deleted* ## LICENSE [MIT](license)