stripHtmlTags function removes all HTML tags from an input string, leaving only the plain text.ts
import { stripHtmlTags } from "@arkyn/shared";
rawHtmlstringstring with all HTML tags removed.javascript
import { stripHtmlTags } from "./stripHtmlTags";const html = "<p>Hello <strong>World</strong></p>";const Plaintext = stripHtmlTags(html);console.log(Puretext); // Output: "Hello World"