@@ 842-861 (lines=20) @@ | ||
839 | return $result; |
|
840 | } |
|
841 | ||
842 | function _doAnchors_inline_callback($matches) |
|
843 | { |
|
844 | $whole_match = $matches[1]; |
|
845 | $link_text = $this->runSpanGamut($matches[2]); |
|
846 | $url = $matches[3] == '' ? $matches[4] : $matches[3]; |
|
847 | $title =& $matches[7]; |
|
848 | ||
849 | $url = $this->encodeAttribute($url); |
|
850 | ||
851 | $result = "<a href=\"$url\""; |
|
852 | if (isset($title)) { |
|
853 | $title = $this->encodeAttribute($title); |
|
854 | $result .= " title=\"$title\""; |
|
855 | } |
|
856 | ||
857 | $link_text = $this->runSpanGamut($link_text); |
|
858 | $result .= ">$link_text</a>"; |
|
859 | ||
860 | return $this->hashPart($result); |
|
861 | } |
|
862 | ||
863 | function doImages($text) |
|
864 | { |
|
@@ 955-972 (lines=18) @@ | ||
952 | return $result; |
|
953 | } |
|
954 | ||
955 | function _doImages_inline_callback($matches) |
|
956 | { |
|
957 | $whole_match = $matches[1]; |
|
958 | $alt_text = $matches[2]; |
|
959 | $url = $matches[3] == '' ? $matches[4] : $matches[3]; |
|
960 | $title =& $matches[7]; |
|
961 | ||
962 | $alt_text = $this->encodeAttribute($alt_text); |
|
963 | $url = $this->encodeAttribute($url); |
|
964 | $result = "<img src=\"$url\" alt=\"$alt_text\""; |
|
965 | if (isset($title)) { |
|
966 | $title = $this->encodeAttribute($title); |
|
967 | $result .= " title=\"$title\""; # $title already quoted |
|
968 | } |
|
969 | $result .= $this->empty_element_suffix; |
|
970 | ||
971 | return $this->hashPart($result); |
|
972 | } |
|
973 | ||
974 | function doHeaders($text) |
|
975 | { |