jQuery.profanityFilter

a simple client side profanity filter

// code:
$('#one').profanityFilter({
    customSwears: ['ass']
}) 
This container will filter the word "ass" but will not filter "shit"
Often when I go to the bathroom, shit comes out of my ass.
// code:
$('#two').profanityFilter({
    customSwears: ['ass'],
    externalSwears: '/swearWords.json'
})
This container will filter both the words "shit" and "ass"
Often when I go to the bathroom, shit comes out of my ass.
// code:
$('#three').profanityFilter({
    replaceWith: ['fun', 'stuff'],
    customSwears: ['ass'],
    externalSwears: '/swearWords.json'
})
This container will filter both the words "shit" and "ass", but will also change the replacement character from an asterisk (*) a random word listed in the `replaceWith` array.
Often when I go to the bathroom, shit comes out of my ass.
// code:
$('#four').profanityFilter({
    replaceWith:'#',
    customSwears: ['ass'],
    externalSwears: '/swearWords.json'
})
This container will filter both the words "shit" and "ass", but will also change the replacement character from an asterisk (*) to a pound sign (#)
Often when I go to the bathroom, shit comes out of my ass.
Fork me on GitHub