How to check if the string size is greater thatn its container's size?
<p>in my div of the size e.g 100x200px, I have a html-formatted string. I want to limit the count of displayed character's of that string, if the string size (or length?) is grater that this div size (then I want to use tooltip). Any ideas how to do that ? I could convert that string to the plain version and then check the size, but is it a good idea ?</p>

<hr>

<p>I've found that article to check:</p>

<p><a href="http://blog.mastykarz.nl/measuring-the-length-of-a-string-in-pixels-using-javascript/" rel="nofollow">http://blog.mastykarz.nl/measuring-the-length-of-a-string-in-pixels-using-javascript/</a></p>

<hr>

<p>I've noticed the another problem, the string trimming seems to be working, but, I'd like to view the trimmed string saving its html tags</p>
