title: Phantom JS + Angular JS - Parse Error
body: <p>I'm getting <code>SyntaxError: Parse error</code> while executing unit tests with Karma on PhantomJS. </p>
  
  <pre><code>PhantomJS 1.9.7 (Windows 7) ERROR
      SyntaxError: Parse error
      at d:/Path/To/File/index.html.js.js.js.js:11
  PhantomJS 1.9.7 (Windows 7): Executed 0 of 0 ERROR (0.512 secs / 0 secs)
  </code></pre>
  
  <p>At this line in mentioned html file, I have a conditional angular statement: </p>
  
  <pre><code>{{ condition &amp;&amp; "String with an escaped \' apostrophe" || "Another string without any escaped characters."}}
  </code></pre>
  
  <p>When I remove this escaped apostrophe, it works fine. I'm using Angular 1.0.8, Karma 1.4.14 and PhantomJS 1.9.7. I want to know if there is a workaround without updating any packages. And I very much like to keep this apostrophe. Thank you.</p>
  
  <p><strong>Edit</strong></p>
  
  <p>On chrome I'm getting this error:</p>
  
  <pre><code>Chrome 37.0.2062 (Windows 7) ERROR
      Uncaught SyntaxError: Unexpected identifier
      at d:/Path/To/File/index.html.js:11
  Chrome 37.0.2062 (Windows 7): Executed 0 of 0 ERROR (2.576 secs / 0 secs)
  </code></pre>