Socket
Book a DemoInstallSign in
Socket

html-trim

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-trim

Reduces whitespace in HTML markup

latest
Source
npmnpm
Version
1.2.0
Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 28 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts