html-trim

1.2.0 • Public • Published

html-trim Build Status

Reduces whitespace in HTML markup

This module aims to reduce the whitespace in HTML markup. It does is not cover all cases, but tries it's best to make the markup a bit cleaner.

Install

$ npm install --save html-trim

Usage

const htmlTrim = require('html-trim');
 
htmlTrim('<span>end of the sentence.&nbsp;<br><br>&nbsp; &nbsp; &nbsp;</span>');
//=> '<span>end of the sentence.<br></span>'

License

MIT © ScienceMatters

Readme

Keywords

none

Package Sidebar

Install

npm i html-trim

Weekly Downloads

1

Version

1.2.0

License

MIT

Last publish

Collaborators

  • jonny