Added an entitizer function.

Function converts all properties of an object into their htmlentities() equivalent.