title: Removing invalid characters in JavaScript
body: <p>Can someone provide a regular expression to search and replace illegal characters found</p>
  
  <p>Example, removing � </p>
  
  <p>I am not sure how many types of 'illegal' characters exist but I think this will be a good start.</p>
  
  <p>Many thanks</p>
  
  <p>edit - I have no control over the data, we're trying to create a catch for the potentially bad data we're receiving.</p>