title: JavaScript Get real length of a string (without entities)
body: <p>I need to determine the length of string which may contain html-entities.</p>
  
  <p>For example "&amp;darr ;" (&darr;) would return length 6, which is correct, but I want these entities to be counted as only 1 character.</p>