title: search substring through jQuery
body: <p>My JSP has following div</p>
  
  <pre><code>&lt;td class="detail"&gt;Hello my name is Bond
  &lt;br/&gt;James Bond
  &lt;/td&gt;
  </code></pre>
  
  <p>I have to search whether the class "detail" has sub string <strong>"Bond James Bond"</strong></p>
  
  <p>As Bond James bond has <strong>"br"</strong> in middle, how can I search that whether this string has the substring</p>
  
  <p>I have tried multiple combinations of /n and br in the jQuery to display</p>
  
  <pre><code>alert($('.detail').text().toLocaleLowerCase().indexOf('bond\n james bond'));
  </code></pre>
  
  <p>and </p>
  
  <pre><code> alert($('.detail').text().toLocaleLowerCase().indexOf('bond&lt;br&gt; james bond''));
  </code></pre>
  
  <p>but it always return -1. help me out thanks in advance</p>