title: javascript validation works unpredictably
body: <p>I have the code </p>
  
  <pre><code>        $(".jqte_editor").keyup( function(){
          console.log($(this).text().trim());
          $(this).parent().find(".validationmessagecomposed").remove();
          if(!/^.{100,}$/g.test($(this).text()))
          {
              displayvalidationmessage($(this), "Please enter some more content");
          }
  
      });
  </code></pre>
  
  <p>and it fails on the string </p>
  
  <pre><code>    &lt;div&gt;&lt;span style="color: rgb(0, 0, 0); font-family:
      'Courier New', Courier, monospace; white-space: pre-wrap;"&gt;
      Install&lt;/span&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;pre style="color: rgb(0, 0, 0);
      word-wrap: break-word; white-space: pre-wrap;"&gt;    How to install HTML Purifier
  
     HTML Purifier is designed to run out of the box, so actually using the
     library is extremely easy.  (Although... if you were looking for a
     step-by-step installation GUI, you've downloaded the wrong software!)
     &lt;/pre&gt;&lt;/div&gt;
  </code></pre>
  
  <p>while it passes other text.. not sure what is going wrong here.</p>