title: Escaping Double Quotes in Velocity
body: <p>I have a string which i am getting </p>
  
  <pre><code>#set($locator=$dataElement.getLocator().get(0))
  #set($selector = $locator.getSelector())
  </code></pre>
  
  <p>$selector is string type and it contains double quotes as well</p>
  
  <p>when i am calling </p>
  
  <pre><code>executor.click(new Params("$selector",BY.$By));
  </code></pre>
  
  <p>selector have double quotes, which needs to be replaced with single quotes.</p>
  
  <p>i tried with replacing but it is giving error</p>
  
  <p>i referred question </p>
  
  <p><a href="https://stackoverflow.com/questions/19579748/escaping-quotes-in-velocity-template?answertab=active#tab-top">Escaping quotes in velocity template</a></p>
  
  <p>But this also don't solved my purpose</p>
  
  <p><strong>example</strong> </p>
  
  <p>$selector can be something like</p>
  
  <pre><code> a[@href="somelink"]
  </code></pre>
  
  <p>and i want that to changed to</p>
  
  <pre><code>a[@href='someLink']
  </code></pre>