title: Difference between &#32; and &nbsp;
body: <p>Can any one explain me difference between <code>&amp;#32; and &amp;nbsp;</code> ?</p>
  
  <p>I have html data stored in database in binary form and space in that can be either of <code>&amp;nbsp;</code> or <code>&amp;#32;</code> or sometimes <code>&amp;#160;</code>. </p>
  
  <p>Also issue is when I convert this HTML to plain text using <strong><code>JSoup lib</code></strong> it is converting it properly but if I use String.contains(my string) method of java. It looks like the HTML data which is having <code>&amp;nbsp;</code> is different from which is having <code>&amp;#32;</code>. String is not found in either vice versa. </p>
  
  <p>Example: </p>
  
  <p>HTML1 : <code>This&amp;#32;is&amp;#32;my&amp;#32;test&amp;#32;string</code></p>
  
  <p>HTML2 : <code>This&amp;nbsp;is&amp;nbsp;my&amp;nbsp;test&amp;nbsp;string</code></p>
  
  <p>If I convert it to plain text using JSoup. It returns</p>
  
  <p>HTML 1 : This is my test string</p>
  
  <p>HTML 2 : This is my test string</p>
  
  <p>But still both string are not same. Why is it so?</p>