@@ 789-808 (lines=20) @@ | ||
786 | return $result; |
|
787 | } |
|
788 | ||
789 | public function _doAnchors_inline_callback($matches) |
|
790 | { |
|
791 | $whole_match = $matches[1]; |
|
792 | $link_text = $this->runSpanGamut($matches[2]); |
|
793 | $url = $matches[3] == '' ? $matches[4] : $matches[3]; |
|
794 | $title = &$matches[7]; |
|
795 | ||
796 | $url = $this->encodeAttribute($url); |
|
797 | ||
798 | $result = "<a href=\"$url\""; |
|
799 | if (isset($title)) { |
|
800 | $title = $this->encodeAttribute($title); |
|
801 | $result .= " title=\"$title\""; |
|
802 | } |
|
803 | ||
804 | $link_text = $this->runSpanGamut($link_text); |
|
805 | $result .= ">$link_text</a>"; |
|
806 | ||
807 | return $this->hashPart($result); |
|
808 | } |
|
809 | ||
810 | public function doImages($text) |
|
811 | { |
|
@@ 896-913 (lines=18) @@ | ||
893 | return $result; |
|
894 | } |
|
895 | ||
896 | public function _doImages_inline_callback($matches) |
|
897 | { |
|
898 | $whole_match = $matches[1]; |
|
899 | $alt_text = $matches[2]; |
|
900 | $url = $matches[3] == '' ? $matches[4] : $matches[3]; |
|
901 | $title = &$matches[7]; |
|
902 | ||
903 | $alt_text = $this->encodeAttribute($alt_text); |
|
904 | $url = $this->encodeAttribute($url); |
|
905 | $result = "<img src=\"$url\" alt=\"$alt_text\""; |
|
906 | if (isset($title)) { |
|
907 | $title = $this->encodeAttribute($title); |
|
908 | $result .= " title=\"$title\""; // $title already quoted |
|
909 | } |
|
910 | $result .= $this->empty_element_suffix; |
|
911 | ||
912 | return $this->hashPart($result); |
|
913 | } |
|
914 | ||
915 | public function doHeaders($text) |
|
916 | { |