clean html content for reading. simply pass in your content as html and get a readability object
$ yarn add clean-html-js
import { cleanHtml } from "clean-html-js";
const grabReaderData = async function(html, url) {
const readabilityArticle = await cleanHtml(html, url);
console.log(data);
};
grabReaderData("https://www.a11ywatch.com");
- For more help getting started checkout Example
param | default | type | description |
---|---|---|---|
url | "" | string | Required: A valid web url source |
html | "" | string | Required: html string |