I want to insert this inside my table in Postgres but I don't know how to escape the special characters. Also, my string is much longer than the one below but contains many such instances.
'<a href='http:\/\/%%code%%' target='_blank'>'
I want to insert this inside my table in Postgres but I don't know how to escape the special characters. Also, my string is much longer than the one below but contains many such instances.
'<a href='http:\/\/%%code%%' target='_blank'>'
Please use pg_query_params in any data going into a Postgresql database or a similar method that escapes the string correctly. Do not under any circumstances trust any encoding coming from a client ie a Browser.