To::description()
Converts current value to description.
Table of Contents
Description
To::description(?string $value, int $max = 200): ?string;
To::description(?string $value, array $state = [$max = 200, $tail = '…']): ?string;
This method converts a chunk of HTML string into an excerpt that you can safely use as the content of a paragraph element.
Example
echo '<p>' . To::description($value) . '</p>';
To::description()
Converts current value to description.
To::page()
Converts array to page content.
To::title()
Converts current value to title case.