Skip to content

SciMts/html-trim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Reduces whitespace in HTML markup

Resources

License

Stars

Watchers

Forks

Packages

No packages published