Set MaxLength for dynamic <p>
<p>I have script which allows to display Bing search results. I can call for the search results url's like this:</p>

<pre><code>'&lt;p class="width"&gt;&lt;a  href="' , imgResult.Url , '"&gt;',imgResult.DisplayUrl,'&lt;/a&gt;&lt;/p&gt;' ,
</code></pre>

<p>The problem is that sometimes the url is to long an 'sloppy' like this:</p>

<pre class="lang-none prettyprint-override"><code>http://www.art-wallpaper.net/Game-Wallpapers/Assassins-Creed-Brotherhood/imagepages/image3.htm
</code></pre>

<p>I would like to 'hide' or 'delete' the beginning of the url (<code>http://www.</code>) and do the same from  <code>/Game...</code> etc This way I can get a 'clean' and 'short' url like: <code>art-wallpaper.net</code> I there a (simple) way of doing this?</p>
