luya\TagParser::convert PHP Method

convert() public static method

Convert the CMS-Tags into HTML-Tags.
public static convert ( string $text ) : string
$text string The content where the CMS-Tags should be found and convert into Html-Tags.
return string The converted output of $text.
    public static function convert($text)
    {
        return self::getInstance()->processText($text);
    }

Usage Example

Ejemplo n.º 1
0
 public function testInvalidContent()
 {
     $this->assertSame(false, TagParser::convert(false));
     $this->assertSame(true, TagParser::convert(true));
     $this->assertSame(1, TagParser::convert(1));
     $this->assertSame(0, TagParser::convert(0));
     $this->assertSame('string', TagParser::convert('string'));
     $this->assertSame([], TagParser::convert([]));
     $this->assertSame('', TagParser::convert(''));
 }
All Usage Examples Of luya\TagParser::convert