title: Remove HTML Entity if Incomplete
body: <p>I have an issue where I have displayed up to 400 characters of a string that is pulled from the database, however, this string is required to contain HTML Entities.</p>
  
  <p>By chance, the client has created the string to have the 400th character to sit right in the middle of a closing P tag, thus killing the tag, resulting in other errors for code after it.</p>
  
  <p>I would prefer this closing P tag to be removed entirely as I have a "...read more" link attached to the end which would look cleaner if attached to the existing paragraph.</p>
  
  <p>What would be the best approach for this to cover all HTML Entity issues?  Is there a PHP function that will automatically close off/remove any erroneous HTML tags?  I don't need a coded answer, just a direction will help greatly.</p>
  
  <p>Thanks.</p>