Mecha CMS

To::text()

Convert file name or HTML string into plain text.

2.0.0Static

To::text(string $in);

Example:

$A = To::text('foo-bar-baz');
$B = To::text('<p><strong>Foo</strong> Bar <em>Baz</em></p>');

Result:

$A = 'foo bar baz';
$B = 'Foo Bar Baz';