unescapeHTML and escapeHTML now working on client side