convert-to-plain

1.0.1 • Public • Published

Convert html to plain text

Install

$ npm install convert-to-plain

Usage

const {convertToPlain} = require("convert-to-plain");

const htmlContent = "<div>Merhaba <strong>Dünya</strong></div>";

let htmlToPlain = convertToPlain(htmlContent);

console.log("Girdi: ", htmlContent + "\n"+"Sonuç: ", htmlToPlain);
//=> Girdi: <div>Merhaba <strong>Dünya</strong></div>
//=> Sonuç: Merhaba Dünya

Package Sidebar

Install

npm i convert-to-plain

Weekly Downloads

20

Version

1.0.1

License

ISC

Unpacked Size

1.58 kB

Total Files

4

Last publish

Collaborators

  • aykutkircan
  • ademkoc