title: How to pass special characters in a function
body: <p>I am fairly new to angular, I am working on a POC of how to use modal in my application. Here is what I am doing:</p>
  
  <p>I have controller which declares a function called <code>open</code> in the scope. The function open takes the url as the input. Now, the url that I need to pass in is dynamically created:</p>
  
  <pre><code>&lt;a ng-click="open(/test/obj['test-attr']/update/)" href="/test/{{ obj['test-attr'] }}/update/"&gt;{{ obj['test-attr'] }}&lt;/a&gt;
  </code></pre>
  
  <p>But this gives me a parse error. I am not sure how to pass the data to the controller. </p>
  
  <p>Update:</p>
  
  <p>The error is not because of quotations but because of the <code>/</code>. Is there a angular way to pass in special character into the function.</p>
  
  <p>This is the error I get:</p>
  
  <pre><code>Error: [$parse:lexerr] http://errors.angularjs.org/1.2.22/$parse/lexerr?p0=Unexpected%20nextharacter%20&amp;p1=s%205-5%20%5B%5C%5D&amp;p2=open(%5C
  </code></pre>