Source for file StrictBlockquote.php
Documentation is available at StrictBlockquote.php
* Takes the contents of blockquote when in strict and reformats for validation.
public $type =
'strictblockquote';
$def =
$config->getHTMLDefinition();
// allow all inline elements
// trick the parent class into thinking it allows more
if ($result ===
false) return array();
if ($result ===
true) $result =
$tokens_of_children;
// assuming that there are no comment tokens
foreach ($result as $i =>
$token) {
// ifs are nested for readability
$ret[] =
$block_wrap_start;
// starting tokens have been inline text / empty
if (isset
($this->elements[$token->name])) {
$ret[] =
$block_wrap_end;
if ($is_inline) $ret[] =
$block_wrap_end;
Documentation generated on Thu, 19 Jun 2008 18:50:21 -0400 by phpDocumentor 1.4.2