-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(utils): Enhance HTML and Markdown sanitization with comprehe…
…nsive cleaning utilities - Add `cleanHtml` function to preprocess HTML content - Implement `cleanMarkdown` function for post-processing markdown - Improve content sanitization by removing comments, scripts, empty tags, and base64 images - Update `removeUnusedHtmlNode`, `getReadabilityHtml`, and `getMarkdown` to use new cleaning methods - Enhance markdown cleaning with link, whitespace, and special character removal
- Loading branch information
Showing
1 changed file
with
82 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters