getStringContent() public method

public getStringContent ( ) : string
return string
 public function __construct(AbstractBlock $container, ReferenceMap $referenceMap)
 {
     $this->referenceMap = $referenceMap;
     $this->container = $container;
     $this->cursor = new Cursor(trim($container->getStringContent()));
     $this->delimiterStack = new DelimiterStack();
 }
 /**
  * @param HtmlBlock $block
  * @param HtmlRenderer $htmlRenderer
  * @param bool $inTightList
  *
  * @return string
  */
 public function render(AbstractBlock $block, HtmlRenderer $htmlRenderer, $inTightList = false)
 {
     return $block->getStringContent();
 }
Beispiel #3
0
 private function processInlines(ContextInterface $context, AbstractBlock $block)
 {
     if ($block instanceof AbstractInlineContainer) {
         $cursor = new Cursor(trim($block->getStringContent()));
         $block->setInlines($this->inlineParserEngine->parse($context, $cursor));
     }
     foreach ($block->getChildren() as $child) {
         $this->processInlines($context, $child);
     }
 }
 /**
  * @param AbstractBlock $block
  * @param HtmlRenderer $htmlRenderer
  * @param bool $inTightList
  *
  * @return HtmlElement
  */
 public function render(AbstractBlock $block, HtmlRenderer $htmlRenderer, $inTightList = false)
 {
     return new HtmlElement('pre', array(), new HtmlElement('code', array(), $htmlRenderer->escape($block->getStringContent())));
 }