I have used the replaceAll
method of Javascript to replace the occurrences of character code "
to Double Quotes in a big comma separated String. I really worry whether it will cause any issues or performance issues when deal with large amount of data.
Data will be like below:-
"TEST,TEST,"TEST",TEST,
TEST,TEST,TEST,TEST,
"TEST",TEST,TEST,TEST,
.
.
.Many Rows
.
"TEST",TEST,TEST,TEST"
My JavaScript code:-
data = data.replaceAll('"','"');
Please guide me if there is a better way to do this or this is really good approach?