Export to excel with symbol

In JavaScript, how can I check if a symbol(for example €) is present in the HTML cell of a table and only in that case when exporting table to xls, delete the period if present and replace it with a comma in other cases?

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum