title: Nginx, Sub_filter, javascipt, replace string containing $
body: <p>Nginx sub_filter syntax: sub_filter string replacement;</p>
  
  <p>A variable in Nginx is set using the operand $: set $a 'Hello World';</p>
  
  <p>When a $ is present sub_filter String but not a variable, Nginx will not allow the String e.g.</p>
  
  <p>sub_filter 'data-ng-click="$ctrl.goto 'onclick="location.href=';</p>
  
  <p>I am sure there is a "work around" so that $ctrl is not seen as a variable and just part of the String to be replaced?</p>
  
  <p>Any help would be appreciated</p>