decorateTT() public method

Transforms plain text to HTML
See also: Bolt\Helpers\Html::decorateTT()
public decorateTT ( string $str ) : string
$str string
return string
Beispiel #1
0
 public function testDecorateTT()
 {
     $app = $this->getApp();
     $handler = new HtmlHandler($app);
     $result = $handler->decorateTT('Lorem `ipsum` dolor.');
     $this->assertSame('Lorem <tt>ipsum</tt> dolor.', $result);
 }