|
@@ 614-632 (lines=19) @@
|
| 611 |
|
} |
| 612 |
|
return $result; |
| 613 |
|
} |
| 614 |
|
protected function _doAnchors_inline_callback($matches) { |
| 615 |
|
$whole_match = $matches[1]; |
| 616 |
|
$link_text = $this->runSpanGamut($matches[2]); |
| 617 |
|
$url = $matches[3] == '' ? $matches[4] : $matches[3]; |
| 618 |
|
$title =& $matches[7]; |
| 619 |
|
|
| 620 |
|
$url = $this->encodeAttribute($url); |
| 621 |
|
|
| 622 |
|
$result = "<a href=\"$url\""; |
| 623 |
|
if (isset($title)) { |
| 624 |
|
$title = $this->encodeAttribute($title); |
| 625 |
|
$result .= " title=\"$title\""; |
| 626 |
|
} |
| 627 |
|
|
| 628 |
|
$link_text = $this->runSpanGamut($link_text); |
| 629 |
|
$result .= ">$link_text</a>"; |
| 630 |
|
|
| 631 |
|
return $this->hashPart($result); |
| 632 |
|
} |
| 633 |
|
|
| 634 |
|
|
| 635 |
|
protected function doImages($text) { |
|
@@ 718-734 (lines=17) @@
|
| 715 |
|
|
| 716 |
|
return $result; |
| 717 |
|
} |
| 718 |
|
protected function _doImages_inline_callback($matches) { |
| 719 |
|
$whole_match = $matches[1]; |
| 720 |
|
$alt_text = $matches[2]; |
| 721 |
|
$url = $matches[3] == '' ? $matches[4] : $matches[3]; |
| 722 |
|
$title =& $matches[7]; |
| 723 |
|
|
| 724 |
|
$alt_text = $this->encodeAttribute($alt_text); |
| 725 |
|
$url = $this->encodeAttribute($url); |
| 726 |
|
$result = "<img src=\"$url\" alt=\"$alt_text\""; |
| 727 |
|
if (isset($title)) { |
| 728 |
|
$title = $this->encodeAttribute($title); |
| 729 |
|
$result .= " title=\"$title\""; # $title already quoted |
| 730 |
|
} |
| 731 |
|
$result .= $this->empty_element_suffix; |
| 732 |
|
|
| 733 |
|
return $this->hashPart($result); |
| 734 |
|
} |
| 735 |
|
|
| 736 |
|
|
| 737 |
|
protected function doHeaders($text) { |