decorateTT() public static method

Transforms plain text to HTML. Plot twist: text between backticks (`) is wrapped in a element.
public static decorateTT ( string $str ) : string
$str string Input string. Treated as plain text.
return string The resulting HTML
Beispiel #1
0
 public function testDecorateTT()
 {
     $input = 'Lorem `ipsum` dolor.';
     $this->assertEquals('Lorem <tt>ipsum</tt> dolor.', Html::decorateTT($input));
 }
Beispiel #2
0
 public function decorateTT($str)
 {
     return Html::decorateTT($str);
 }