3 namespace Drupal\filter\Render;
5 use Drupal\Component\Render\MarkupInterface;
6 use Drupal\Component\Render\MarkupTrait;
9 * Defines an object that passes markup through the Filter system.
11 * This object should only be constructed with markup that is safe to render. If
12 * there is any risk that the string contains user-entered data that has not
13 * been filtered first, it must not be used.
16 * This object is marked as internal because it should only be used in the
17 * Filter module on strings that have already been been filtered and sanitized
18 * in \Drupal\filter\Plugin\FilterInterface.
20 * @see \Drupal\Core\Render\Markup
22 final class FilteredMarkup implements MarkupInterface, \Countable {