|
@@ 2337-2358 (lines=22) @@
|
| 2334 |
|
} |
| 2335 |
|
return $result; |
| 2336 |
|
} |
| 2337 |
|
function _doAnchors_inline_callback($matches) { |
| 2338 |
|
$whole_match = $matches[1]; |
| 2339 |
|
$link_text = $this->runSpanGamut($matches[2]); |
| 2340 |
|
$url = $matches[3] == '' ? $matches[4] : $matches[3]; |
| 2341 |
|
$title =& $matches[7]; |
| 2342 |
|
$attr = $this->doExtraAttributes("a", $dummy =& $matches[8]); |
| 2343 |
|
|
| 2344 |
|
|
| 2345 |
|
$url = $this->encodeAttribute($url); |
| 2346 |
|
|
| 2347 |
|
$result = "<a href=\"$url\""; |
| 2348 |
|
if (isset($title)) { |
| 2349 |
|
$title = $this->encodeAttribute($title); |
| 2350 |
|
$result .= " title=\"$title\""; |
| 2351 |
|
} |
| 2352 |
|
$result .= $attr; |
| 2353 |
|
|
| 2354 |
|
$link_text = $this->runSpanGamut($link_text); |
| 2355 |
|
$result .= ">$link_text</a>"; |
| 2356 |
|
|
| 2357 |
|
return $this->hashPart($result); |
| 2358 |
|
} |
| 2359 |
|
|
| 2360 |
|
|
| 2361 |
|
function doImages($text) { |
|
@@ 2447-2465 (lines=19) @@
|
| 2444 |
|
|
| 2445 |
|
return $result; |
| 2446 |
|
} |
| 2447 |
|
function _doImages_inline_callback($matches) { |
| 2448 |
|
$whole_match = $matches[1]; |
| 2449 |
|
$alt_text = $matches[2]; |
| 2450 |
|
$url = $matches[3] == '' ? $matches[4] : $matches[3]; |
| 2451 |
|
$title =& $matches[7]; |
| 2452 |
|
$attr = $this->doExtraAttributes("img", $dummy =& $matches[8]); |
| 2453 |
|
|
| 2454 |
|
$alt_text = $this->encodeAttribute($alt_text); |
| 2455 |
|
$url = $this->encodeAttribute($url); |
| 2456 |
|
$result = "<img src=\"$url\" alt=\"$alt_text\""; |
| 2457 |
|
if (isset($title)) { |
| 2458 |
|
$title = $this->encodeAttribute($title); |
| 2459 |
|
$result .= " title=\"$title\""; # $title already quoted |
| 2460 |
|
} |
| 2461 |
|
$result .= $attr; |
| 2462 |
|
$result .= $this->empty_element_suffix; |
| 2463 |
|
|
| 2464 |
|
return $this->hashPart($result); |
| 2465 |
|
} |
| 2466 |
|
|
| 2467 |
|
|
| 2468 |
|
function doHeaders($text) { |