📜  html 到文本 npm - Html 代码示例

📅  最后修改于: 2022-03-11 14:52:55.428000             🧑  作者: Mango

代码示例1
//install package
npm i html-to-text


//import fun
const { convert } = require("html-to-text");


let text=convert(html, {
          wordwrap: 130,
        });

console.log(text)