To::description()

Converts current value to description.

Table of Contents
  1. Description
  2. Example

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.