How to use the cleaners.cleanContent function in cleaners

To help you get started, we’ve selected a few cleaners examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github postlight / mercury-parser / src / extractors / generic / content / extractor.js View on Github external
getContentNode($, title, url, opts) {
    return cleanContent(extractBestNode($, opts), {
      $,
      cleanConditionally: opts.cleanConditionally,
      title,
      url,
    });
  },

cleaners

Cleans & validates untrusted data, with TypeScript & Flow support

MIT
Latest version published 12 months ago

Package Health Score

53 / 100
Full package analysis