@@ 766-784 (lines=19) @@ | ||
763 | } |
|
764 | return $result; |
|
765 | } |
|
766 | function _doAnchors_inline_callback($matches) { |
|
767 | $whole_match = $matches[1]; |
|
768 | $link_text = $this->runSpanGamut($matches[2]); |
|
769 | $url = $matches[3] == '' ? $matches[4] : $matches[3]; |
|
770 | $title =& $matches[7]; |
|
771 | ||
772 | $url = $this->encodeAttribute($url); |
|
773 | ||
774 | $result = "<a href=\"$url\""; |
|
775 | if (isset($title)) { |
|
776 | $title = $this->encodeAttribute($title); |
|
777 | $result .= " title=\"$title\""; |
|
778 | } |
|
779 | ||
780 | $link_text = $this->runSpanGamut($link_text); |
|
781 | $result .= ">$link_text</a>"; |
|
782 | ||
783 | return $this->hashPart($result); |
|
784 | } |
|
785 | ||
786 | ||
787 | function doImages($text) { |
|
@@ 870-886 (lines=17) @@ | ||
867 | ||
868 | return $result; |
|
869 | } |
|
870 | function _doImages_inline_callback($matches) { |
|
871 | $whole_match = $matches[1]; |
|
872 | $alt_text = $matches[2]; |
|
873 | $url = $matches[3] == '' ? $matches[4] : $matches[3]; |
|
874 | $title =& $matches[7]; |
|
875 | ||
876 | $alt_text = $this->encodeAttribute($alt_text); |
|
877 | $url = $this->encodeAttribute($url); |
|
878 | $result = "<img src=\"$url\" alt=\"$alt_text\""; |
|
879 | if (isset($title)) { |
|
880 | $title = $this->encodeAttribute($title); |
|
881 | $result .= " title=\"$title\""; # $title already quoted |
|
882 | } |
|
883 | $result .= $this->empty_element_suffix; |
|
884 | ||
885 | return $this->hashPart($result); |
|
886 | } |
|
887 | ||
888 | ||
889 | function doHeaders($text) { |