title: Remove escape "\" character in Swift 5
body: <p>I'm trying to upload xml file with Alamofire 5 <code>multipartFormData</code>. For the data part it has to be <code>String</code> and when I made the xml file to String it contains escape characters. I tried <code>replacingOccurrences(of: "\"", with: "")</code> but it remove all the String inside my xml. If I tried <code>replacingOccurrences(of: "\", with: "")</code> it turns <code>, with: "")</code> to String. Is there a way to remove the backslash? Thanks. </p>
  
  <p>** Please don't mark duplicate because I tried all of the answers but did not work on my case ** </p>
  
  <p>Here is the sample xml </p>
  
  <pre><code>&lt;code displayName="Vital signs" codeSystemName="LOINC" code="8716-3" codeSystem="12345"&gt;&lt;/code&gt;
  &lt;title&gt;Vital Signs&lt;/title&gt;
  &lt;text&gt;Measurement period:null-null
  
      &lt;table&gt;
          &lt;thead&gt;
              &lt;tr&gt;
                  &lt;th&gt;Measurement&lt;/th&gt;
                  &lt;th&gt;Date/Time&lt;/th&gt;
                  &lt;th&gt;Value&lt;/th&gt;
              &lt;/tr&gt;
          &lt;/thead&gt;
          &lt;tbody&gt;
              &lt;tr&gt;
                  &lt;td&gt;Mean artillery pressure&lt;/td&gt;
                  &lt;td&gt;2019-10-15/12:11&lt;/td&gt;
                  &lt;td&gt;8&lt;/td&gt;
              &lt;/tr&gt;
          &lt;/tbody&gt;
      &lt;/table&gt;
  &lt;/text&gt;
  &lt;entry typeCode="DRIV"&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/7tRmb.png" rel="noreferrer">before</a></p>
  
  <p>After I tried <code>xml.replacingOccurrences(of: "\"", with: "")</code>
  <a href="https://i.stack.imgur.com/OcgdO.png" rel="noreferrer">it remove "" in xml</a></p>