title: Storing &trade; within database, but also account for the entity
body: <p>I have got an issue within saving the &trade;/&copy; symbol within my database. </p>
  
  <p>The main issue is that some people will simply paste in the symbol (™, ©), whereas other users will use the correct HTML safe code (<code>&amp;trade;</code>, <code>&amp;copy;</code>)</p>
  
  <p>This is an issue when attempting to use <code>htmlentities</code> to convert the symbols to the correct code, as if they use <code>&amp;trade;</code> this function will convert it to <code>&amp;amp;trade;</code>. </p>
  
  <p>Does anyone know a solution to this?</p>
  
  <p>For example detect if the entity was used, if so then I can use <code>htmlentities</code> to convert it. </p>