title: Javascript Regex IE8 issue
body: <p>I have a div as defined below:</p>
  
  <pre><code>&lt;div id="bookmark_error" class="text-error"&gt;Character '' is not allowed in bookmark name.&lt;/div&gt;
  </code></pre>
  
  <p>By default it is hidden as defined below:</p>
  
  <pre><code>$("#bookmark_error").hide();
  </code></pre>
  
  <p>Some of characters are not allowed while saving bookmark on a page for e.g. &lt; and ></p>
  
  <p>Here a validation check that is performed at the time of bookmark save:</p>
  
  <pre><code>...
  var bookmark_name = $("#bookmarks-form").find('input[type=text]').val();
  var skipChars = ["&lt;", "&gt;", "&amp;lt;", "&amp;gt;", "&amp;lt", "&amp;gt", "&amp;#60;", "&amp;#62;", "&amp;#60", "&amp;#62"];
                  for (var i=0; i &lt; skipChars.length; i++){
                      var skipChar = skipChars[i];
                      while(bookmark_name.indexOf(skipChar) != -1){
                          $("#bookmark_error").html($("#bookmark_error").html().replace(/'[^]*'/g, "'"+skipChar+"'"));
                          $("#bookmark_error").show();
                          return;
                      }
                  }
  ...
  </code></pre>
  
  <p>But its not working as expected in IE8 browser.
  Am I doing something wrong in javascript regex?</p>
  
  <p>Here is some sample value-input-value:</p>
  
  <p>value  : Character '' is not allowed in bookmark name.</p>
  
  <p>input  : &lt;</p>
  
  <p>value : Character '&lt;' is not allowed in bookmark name.</p>
  
  <p>input  : ></p>
  
  <p>output : Character '>' is not allowed in bookmark name.</p>