|
@@ 2313-2334 (lines=22) @@
|
| 2310 |
|
} |
| 2311 |
|
return $result; |
| 2312 |
|
} |
| 2313 |
|
protected function _doAnchors_inline_callback($matches) { |
| 2314 |
|
$whole_match = $matches[1]; |
| 2315 |
|
$link_text = $this->runSpanGamut($matches[2]); |
| 2316 |
|
$url = $matches[3] == '' ? $matches[4] : $matches[3]; |
| 2317 |
|
$title =& $matches[7]; |
| 2318 |
|
$attr = $this->doExtraAttributes("a", $dummy =& $matches[8]); |
| 2319 |
|
|
| 2320 |
|
|
| 2321 |
|
$url = $this->encodeAttribute($url); |
| 2322 |
|
|
| 2323 |
|
$result = "<a href=\"$url\""; |
| 2324 |
|
if (isset($title)) { |
| 2325 |
|
$title = $this->encodeAttribute($title); |
| 2326 |
|
$result .= " title=\"$title\""; |
| 2327 |
|
} |
| 2328 |
|
$result .= $attr; |
| 2329 |
|
|
| 2330 |
|
$link_text = $this->runSpanGamut($link_text); |
| 2331 |
|
$result .= ">$link_text</a>"; |
| 2332 |
|
|
| 2333 |
|
return $this->hashPart($result); |
| 2334 |
|
} |
| 2335 |
|
|
| 2336 |
|
|
| 2337 |
|
protected function doImages($text) { |
|
@@ 2423-2441 (lines=19) @@
|
| 2420 |
|
|
| 2421 |
|
return $result; |
| 2422 |
|
} |
| 2423 |
|
protected function _doImages_inline_callback($matches) { |
| 2424 |
|
$whole_match = $matches[1]; |
| 2425 |
|
$alt_text = $matches[2]; |
| 2426 |
|
$url = $matches[3] == '' ? $matches[4] : $matches[3]; |
| 2427 |
|
$title =& $matches[7]; |
| 2428 |
|
$attr = $this->doExtraAttributes("img", $dummy =& $matches[8]); |
| 2429 |
|
|
| 2430 |
|
$alt_text = $this->encodeAttribute($alt_text); |
| 2431 |
|
$url = $this->encodeAttribute($url); |
| 2432 |
|
$result = "<img src=\"$url\" alt=\"$alt_text\""; |
| 2433 |
|
if (isset($title)) { |
| 2434 |
|
$title = $this->encodeAttribute($title); |
| 2435 |
|
$result .= " title=\"$title\""; # $title already quoted |
| 2436 |
|
} |
| 2437 |
|
$result .= $attr; |
| 2438 |
|
$result .= $this->empty_element_suffix; |
| 2439 |
|
|
| 2440 |
|
return $this->hashPart($result); |
| 2441 |
|
} |
| 2442 |
|
|
| 2443 |
|
|
| 2444 |
|
protected function doHeaders($text) { |