Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
AcrylicShrimp committed Feb 26, 2025
1 parent ff8f064 commit 4117e58
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ It is an one of implementation of the paper [DOM Based Content Extraction via Te
```ts
import { extractContent } from "@wrtnlabs/web-content-extractor";

const { content, contentHtmls, links } = extractContent(html);
const { title, description, content, contentHtmls, links } =
extractContent(html);

console.log("title", title);
console.log("description", description);

console.log("content", content); // The content of the page; string

Expand Down

0 comments on commit 4117e58

Please sign in to comment.