0.0.1 • Published 9 years ago

mongoose-strip-html-tags v0.0.1

Weekly downloads
11
License
MIT
Repository
github
Last release
9 years ago

mongoose-strip-html-tags

Strip html tags from your model string attributes.

Install:

npm install mongoose-strip-html-tags --save

Usage:

var mongoose = require('mongoose');
var Schema = mongoose.Schema;
require('./mongoose-strip-html-tags')(mongoose);
var company = new Schema({
    name: {
      type: String,
      stripHtmlTags: true
    }
  }
);