Suggestions for options in cleaning/purifying raw HTML? Stripping inline JavaScript/CSS, etc. and getting text content only

This page summarizes the projects mentioned and recommended in the original post on /r/PHPhelp

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • html-sanitizer

    Provides an object-oriented API to sanitize untrusted HTML input for safe insertion into a document's DOM. (by symfony)

    *Symfony HTMLSanitizer

  • Text-Statistics

    Generate information about text including syllable counts and Flesch-Kincaid, Gunning-Fog, Coleman-Liau, SMOG and Automated Readability scores.

    The following code gives me 9,663 words. It also uses the TextStatistics library.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts