Add html escape method.

Fix bug breaking html code when message contains apostrophe.