developmentseed / bones-document

Document model with JSV validation, other nice conventions
4 stars 3 forks source link

Add escape and/or strip method to Renderer #2

Open miccolis opened 13 years ago

miccolis commented 13 years ago

The Renderer currently only has a render method. I've found myself using this render method when using id-type attributes of a model to construct urls. This works because I'm sure the id is simple and that it's renderer is just an escape. It may be useful to specify either html escaping or stripping behavior on arbitrary attributes.