I have a XML line that looks like this:
<test>
<title name='AND error-based (BIGINT)'/>
<payload start='AND (SELECT 2*(IF((SELECT * FROM (SELECT CONCAT('"[rand_string]"', ("[query]"), '"[rand_string]"','x'))s), "[big_int_1]", "[big_int_2]"'/>
</test>
This isn't working because the string contains both '
and "
. How can I escape the quote in the middle of the string to make this valid XML?