rehype-sanitize
Clean the HTML tree before showing user-created notes on a web page.
rehypejs · Web and apps
GitHub projectOpen source Open on GitHubHow to try it
In a Node.js project, install [email protected]. Run a rendered HTML note through the default rules and inspect the remaining tags.
What we tested
6.0.0. Run a rendered HTML note through the default rules and inspect the remaining tags. Preserved the sample paragraph and removed the iframe element.
Reviews
Rate this repoMore to explore
- cattrsConvert Python records to and from simple dictionary data.GitHub projectOpen source
- h2 for PythonBuild and parse HTTP/2 messages from Python.GitHub projectOpen source
- Go QuerystringBuild URL query parameters from fields of a Go structure.GitHub projectOpen source