createSpan() public method

Create a span, which is a text with inline style
public createSpan ( $span ) : Span
$span the content string
return Span a span object
Example #1
0
 public function finalize(Parser $parser)
 {
     foreach ($this->data as &$row) {
         if ($row) {
             foreach ($row as &$col) {
                 $col = $parser->createSpan($col);
             }
         }
     }
 }
Example #2
0
 public function processNode(Parser $parser, $variable, $data, array $options)
 {
     return $parser->createSpan($data);
 }