How to use the ent/decode function in ent

To help you get started, we’ve selected a few ent 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 Scrivito / scrivito_example_app_js / src / utils / textExtractFromHtml.js View on Github external
function textExtractFromHtml(html) {
  return decode(striptags(html));
}
github welovekpop / munar / src / modules / RedditFeed.module.js View on Github external
              .replace(/\$title\b/g, () => decode(post.data.title))
              .replace(/\$url\b/g, post.data.url)

ent

Encode and decode HTML entities

MIT
Latest version published 5 months ago

Package Health Score

73 / 100
Full package analysis