I have one ruby script which parses one CSV and generates some XML files. In this process, I am stuck at changing
it's free
to
it\'s free
Seems to be a trivial task, but I couldn't complete it.
Tried below
gsub("'","\'")
I have one ruby script which parses one CSV and generates some XML files. In this process, I am stuck at changing
it's free
to
it\'s free
Seems to be a trivial task, but I couldn't complete it.
Tried below
gsub("'","\'")