added hub helpers

Added helper for escaping html. Added some validation in Chess hub.