JavaScript : function htmlEncode() / htmlDecode()