1.0.0 • Published 2 years ago

liquidless-naughtystrings v1.0.0

Weekly downloads
-
License
MPL-2.0
Repository
github
Last release
2 years ago

liquidless-naughtystrings

Big List of Naughty Strings filter for liquidless templates

Get Started

Install the dependency from npm:

npm i liquidless-naughtystrings

Import the naughtystring filter

import { naughtystring } from 'liquidless-naughtystrings'

Usage

Example: Rendering a string

renderTemplate('{{ | naughtystring }}', {}, {
  filters: {
    naughtystring
  }
})

Outputs:

<a href="\xE1\x9A\x80javascript:javascript:alert(1)" id="fuzzelement1">test</a>