0

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?

  • Possible duplicate of [How to escape double quotes in XML attributes values?](https://stackoverflow.com/questions/3961505/how-to-escape-double-quotes-in-xml-attributes-values) – Quentin Jun 02 '17 at 20:21

1 Answers1

0

You can escape quotation mark as &quot; or &#34;, and you can escape apostrophe as &#39;.

Michael Kay
  • 156,231
  • 11
  • 92
  • 164