@@ 638-656 (lines=19) @@ | ||
635 | } |
|
636 | return $result; |
|
637 | } |
|
638 | function _doAnchors_inline_callback($matches) { |
|
639 | $whole_match = $matches[1]; |
|
640 | $link_text = $this->runSpanGamut($matches[2]); |
|
641 | $url = $matches[3] == '' ? $matches[4] : $matches[3]; |
|
642 | $title =& $matches[7]; |
|
643 | ||
644 | $url = $this->encodeAttribute($url); |
|
645 | ||
646 | $result = "<a href=\"$url\""; |
|
647 | if (isset($title)) { |
|
648 | $title = $this->encodeAttribute($title); |
|
649 | $result .= " title=\"$title\""; |
|
650 | } |
|
651 | ||
652 | $link_text = $this->runSpanGamut($link_text); |
|
653 | $result .= ">$link_text</a>"; |
|
654 | ||
655 | return $this->hashPart($result); |
|
656 | } |
|
657 | ||
658 | ||
659 | function doImages($text) { |
|
@@ 742-758 (lines=17) @@ | ||
739 | ||
740 | return $result; |
|
741 | } |
|
742 | function _doImages_inline_callback($matches) { |
|
743 | $whole_match = $matches[1]; |
|
744 | $alt_text = $matches[2]; |
|
745 | $url = $matches[3] == '' ? $matches[4] : $matches[3]; |
|
746 | $title =& $matches[7]; |
|
747 | ||
748 | $alt_text = $this->encodeAttribute($alt_text); |
|
749 | $url = $this->encodeAttribute($url); |
|
750 | $result = "<img src=\"$url\" alt=\"$alt_text\""; |
|
751 | if (isset($title)) { |
|
752 | $title = $this->encodeAttribute($title); |
|
753 | $result .= " title=\"$title\""; # $title already quoted |
|
754 | } |
|
755 | $result .= $this->empty_element_suffix; |
|
756 | ||
757 | return $this->hashPart($result); |
|
758 | } |
|
759 | ||
760 | ||
761 | function doHeaders($text) { |