Hi, me again.
I've narrowed it down, I think. I'm having trouble interpretting this line:
$text = preg_replace_callback('/
:" # start
([^"]+)? # $desc
s?
(?:(([^)]+))(?="))? # $title
":
(S+b)? # $url
(/)? # $slash
([^w/;]*) # $post
(?=s|$)
/Ux', array(&$this, "linkd"), $text);
The rest of the function is:
if ($this->are_links) {
for ($i=1; $i <= $this->count; $i++) {
$links .= $this->items[$i];
}
$linknotes = str_replace('%items%', $links, $this->notes_code);
$text = $text.$linknotes;
}
return $text;
}
If you want to know what the linkd function is:
` function linkd($m) {
list(, $title, $text, $url, $slash, $post) = $m;
$this->count++;
$this->are_links = true;
$itm_replace = array('%noted-id%', '%url%','%title%','%desc%', '%desc_text%', '%return%');
$desc = $text;
if ($text && $url) $desc = str_replace('%desc_text%', $text, $this->desc_code);
$itm = array( "linknote-$this->id-$this->count", $url, $title, $desc, $text, "#noted-$this->id-$this->count");
$this->items[$this->count] = str_replace($itm_replace, $itm, $this->item_code);
$at_title = strip_tags($title.$desc);
return "<sup>id.'-'.$this->count."';\" id=\"noted-$this->id-$this->count\" title=\"$at_title\">[$this->count]</sup>";
}'
I can't see why it would strip the html tags or displace them.