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 |
public function testDecorateTT() { $input = 'Lorem `ipsum` dolor.'; $this->assertEquals('Lorem <tt>ipsum</tt> dolor.', Html::decorateTT($input)); }
public function decorateTT($str) { return Html::decorateTT($str); }