Add \ before special characters
For example: original SQL: update tableA set title='On the ${process} and its impact of the protracted war' where id=6;
SQL after escaping: update tableA set title='On the \$\{process\} and impact of the protracted war' where id=6;