function insert($body)
{
return str_replace('<img src="' with '<img src="http://www.domain.com/');
}

[[~[[+id]]? &scheme=`full`]]


/**
* Convert URL in any form to a fully qualified URL
*
* @param $base string - sites base URL
* @return string - full URL
*/
public function fullUrls($base) {
/* extract domain name from $base */
$splitBase = explode('//', $base);
$domain = $splitBase[1];
$domain = rtrim($domain,'/ ');
/* remove space around = sign */
//$html = preg_replace('@(href|src)\s*=\s*@', '\1=', $html);
$html = preg_replace('@(?<=href|src)\s*=\s*@', '=', $this->html);
/* fix google link weirdness */
$html = str_ireplace('google.com/undefined', 'google.com',$html);
/* add http to naked domain links so they'll be ignored later */
$html = str_ireplace('a href="' . $domain, 'a href="http://'. $domain, $html);
/* standardize orthography of domain name */
$html = str_ireplace($domain, $domain, $html);
/* Correct base URL, if necessary */
$server = preg_replace('@^([^\:]*)://([^/*]*)(/|$).*@', '\1://\2/', $base);
/* handle root-relative URLs */
$html = preg_replace('@\<([^>]*) (href|src)="/([^"]*)"@i', '<\1 \2="' . $server . '\3"', $html);
/* handle base-relative URLs */
$html = preg_replace('@\<([^>]*) (href|src)="(?!http|mailto|sip|tel|callto|sms|ftp|sftp|gtalk|skype)(([^\:"])*|([^"]*:[^/"].*))"@i', '<\1 \2="' . $base . '\3"', $html);
return $html;
}
/**
* Fix images attributes that confuse some mail rendering engines
*/
public function imgAttributes() {
$html =& $this->html;
$replace = array (
'<img style="vertical-align: baseline;' =>'<img align="bottom" hspace="4" vspace="4" style="vertical-align: baseline;',
'<img style="vertical-align: middle;' => '<img align="middle" hspace="4" vspace="4" style="vertical-align: middle;',
'<img style="vertical-align: top;' => '<img align="top" hspace="4" vspace="4" style="vertical-align: top;',
'<img style="vertical-align: bottom;' => '<img align="bottom" hspace="4" vspace="4" style="vertical-align: bottom;',
'<img style="vertical-align: text-top;' =>'<img align="top" hspace="4" vspace="4" style="vertical-align: text-top;',
'<img style="vertical-align: text-bottom;' => '<img align="bottom" hspace="4" vspace="4" style="vertical-align: text-bottom;',
'<img style="float: left;' => '<img align="left" hspace="4" vspace="4" style="float: left;',
'<img style="float: right;' => '<img align="right" hspace="4" vspace="4" style="float: right;',
);
$html = $this->strReplaceAssoc($replace, $html);
}