@@ 2324-2345 (lines=22) @@ | ||
2321 | } |
|
2322 | return $result; |
|
2323 | } |
|
2324 | function _doAnchors_inline_callback($matches) { |
|
2325 | $whole_match = $matches[1]; |
|
2326 | $link_text = $this->runSpanGamut($matches[2]); |
|
2327 | $url = $matches[3] == '' ? $matches[4] : $matches[3]; |
|
2328 | $title =& $matches[7]; |
|
2329 | $attr = $this->doExtraAttributes("a", $dummy =& $matches[8]); |
|
2330 | ||
2331 | ||
2332 | $url = $this->encodeAttribute($url); |
|
2333 | ||
2334 | $result = "<a href=\"$url\""; |
|
2335 | if (isset($title)) { |
|
2336 | $title = $this->encodeAttribute($title); |
|
2337 | $result .= " title=\"$title\""; |
|
2338 | } |
|
2339 | $result .= $attr; |
|
2340 | ||
2341 | $link_text = $this->runSpanGamut($link_text); |
|
2342 | $result .= ">$link_text</a>"; |
|
2343 | ||
2344 | return $this->hashPart($result); |
|
2345 | } |
|
2346 | ||
2347 | ||
2348 | function doImages($text) { |
|
@@ 2434-2452 (lines=19) @@ | ||
2431 | ||
2432 | return $result; |
|
2433 | } |
|
2434 | function _doImages_inline_callback($matches) { |
|
2435 | $whole_match = $matches[1]; |
|
2436 | $alt_text = $matches[2]; |
|
2437 | $url = $matches[3] == '' ? $matches[4] : $matches[3]; |
|
2438 | $title =& $matches[7]; |
|
2439 | $attr = $this->doExtraAttributes("img", $dummy =& $matches[8]); |
|
2440 | ||
2441 | $alt_text = $this->encodeAttribute($alt_text); |
|
2442 | $url = $this->encodeAttribute($url); |
|
2443 | $result = "<img src=\"$url\" alt=\"$alt_text\""; |
|
2444 | if (isset($title)) { |
|
2445 | $title = $this->encodeAttribute($title); |
|
2446 | $result .= " title=\"$title\""; # $title already quoted |
|
2447 | } |
|
2448 | $result .= $attr; |
|
2449 | $result .= $this->empty_element_suffix; |
|
2450 | ||
2451 | return $this->hashPart($result); |
|
2452 | } |
|
2453 | ||
2454 | ||
2455 | function doHeaders($text) { |