i have a script which will fetch content from a website, what i wanna do is modify all that links. Suppose:
$html = str_get_html('<h2 class="r"><a class="l" href="http://www.example.com/2009/07/page.html" onmousedown="return curwt(this, 'http://www.example.com/2009/07/page.html')">SEO Result Boost <b> </b></a></h2>');
so, is it possible to modify or rewrite it in this way>
<h2 class="r"><a class="l" href="http://www.site.com?http://www.example.com/2009/07/page.html">SEO Result Boost <b> </b></a></h2>
I have read it's manual but can not understand how to figure it ( http://simplehtmldom.sourceforge.net/#fragment-12 )
Is It Possible, Any Idea?