javascript limit display link from text area
<p>i have a following feed from twitter and im making all links clickable and then i want that links which are inside a tag to be short to 30 chars, if its more then 30 chars then show ... after 30 chars</p>

<p>twitter feed</p>

<blockquote>
  <p>i need to start learning some real javascript from <a href="http://javascript.com/java/codes/snippet/search?q=javascript+limit+chars+leading" rel="nofollow">http://javascript.com/java/codes/snippet/search?q=javascript+limit+chars+leading  some more text here, so dont remove this.</p>
</blockquote>

<p>TO</p>

<blockquote>
  <p>i need to start learning some real javascript from http://javascript.com/java...</a> some more text here, so dont remove this.</p>
</blockquote>

<p>just need to know how can i truncate the inside of  tag.</p>

<p><strong>Edited</strong></p>

<p>the link can be anywhere in whole text area. </p>
