Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uttesh/nggentle
Simple angularJS module plugin which will filter out bad/swear word from input static data. simple directives here will show the bad word on type and service 'paragraph' with 'isGentle' method, method will take input string and find the bad/swear worlds if found return the list of bad words in input text, it checks around thousand bad/swear words and can be filtered.
https://github.com/uttesh/nggentle
Last synced: about 6 hours ago
JSON representation
Simple angularJS module plugin which will filter out bad/swear word from input static data. simple directives here will show the bad word on type and service 'paragraph' with 'isGentle' method, method will take input string and find the bad/swear worlds if found return the list of bad words in input text, it checks around thousand bad/swear words and can be filtered.
- Host: GitHub
- URL: https://github.com/uttesh/nggentle
- Owner: uttesh
- License: mit
- Created: 2014-07-06T05:17:39.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-06T13:32:43.000Z (over 9 years ago)
- Last Synced: 2024-10-10T18:29:48.617Z (about 1 month ago)
- Language: JavaScript
- Homepage: http://uttesh.github.io/nggentle/
- Size: 1.01 MB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# nggentle demo
Is an AngularJS module for simple gentle plugin which will allow only good words and filter out bad/swear world from input static data. simple directives here will show the bad word on type and service 'paragraph' with 'isGentle' method, method will take input string and find or the bad/swear worlds if found return the list of bad words in input text, it checks around thousand bad/swear words and can be filtered.
Mostly based on various snippets which I found on JSFiddle, with some changes by me.
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/uttesh/nggentle/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
## Quick start```
bower install ngGentle
```
new version```
bower install ngGentle0.0.1
```or alternatively download and include `ngGentle.js` after `angular.min.js`.
Add the `ngGentle` module as a dependency when creating your app, e.g.
```
var app = angular.module('myApp', ['ngGentle']);`Inject or use in controller
app.controller('filterCtrl', function($scope,paragraph) {
$scope.txt = "testing the function shi+";
console.log("gentle : "+paragraph.isGentle($scope.txt));
});
```u can use in html as filter.
## Rendering
```
```## Contributions
For problems/suggestions please create an issue on Github.
## Contributors
* [@uttesh](https://twitter.com/uttesh)
## Credits
* Other uknown JSFiddles