[JS] Single and double quote replaced with html code before sending data to g_main_app