@@ 651-669 (lines=19) @@ | ||
648 | } |
|
649 | return $result; |
|
650 | } |
|
651 | function _doAnchors_inline_callback($matches) { |
|
652 | $whole_match = $matches[1]; |
|
653 | $link_text = $this->runSpanGamut($matches[2]); |
|
654 | $url = $matches[3] == '' ? $matches[4] : $matches[3]; |
|
655 | $title =& $matches[7]; |
|
656 | ||
657 | $url = $this->encodeAttribute($url); |
|
658 | ||
659 | $result = "<a href=\"$url\""; |
|
660 | if (isset($title)) { |
|
661 | $title = $this->encodeAttribute($title); |
|
662 | $result .= " title=\"$title\""; |
|
663 | } |
|
664 | ||
665 | $link_text = $this->runSpanGamut($link_text); |
|
666 | $result .= ">$link_text</a>"; |
|
667 | ||
668 | return $this->hashPart($result); |
|
669 | } |
|
670 | ||
671 | ||
672 | function doImages($text) { |
|
@@ 755-771 (lines=17) @@ | ||
752 | ||
753 | return $result; |
|
754 | } |
|
755 | function _doImages_inline_callback($matches) { |
|
756 | $whole_match = $matches[1]; |
|
757 | $alt_text = $matches[2]; |
|
758 | $url = $matches[3] == '' ? $matches[4] : $matches[3]; |
|
759 | $title =& $matches[7]; |
|
760 | ||
761 | $alt_text = $this->encodeAttribute($alt_text); |
|
762 | $url = $this->encodeAttribute($url); |
|
763 | $result = "<img src=\"$url\" alt=\"$alt_text\""; |
|
764 | if (isset($title)) { |
|
765 | $title = $this->encodeAttribute($title); |
|
766 | $result .= " title=\"$title\""; # $title already quoted |
|
767 | } |
|
768 | $result .= $this->empty_element_suffix; |
|
769 | ||
770 | return $this->hashPart($result); |
|
771 | } |
|
772 | ||
773 | ||
774 | function doHeaders($text) { |