Add sanitation function.
Merge pull request #411 from jordandukart/7.x

Add sanitation function.