HTML Text
Extract text from HTML.
Install
npm install html-text
Strategy
The input HTML is prettified to clean it up and unindent the code, stripped from tags and trimmed to removed newlines and spaces.
Usage
const htmlText = ; ;//=> 'Site Content.'
API
htmlText(input)
input
Type: string
The HTML to strip the tags from.