W3cubDocs

/Drupal 8

interface OutputStrategyInterface

Provides an output strategy that formats HTML strings for a given context.

Output strategies assist in transforming HTML strings into strings that are appropriate for a given context (e.g. plain-text), through performing the relevant formatting. No sanitization is applied.

Hierarchy

File

core/lib/Drupal/Component/Render/OutputStrategyInterface.php, line 12

Namespace

Drupal\Component\Render

Members

Name Modifiers Type Description
OutputStrategyInterface::renderFromHtml public static function Transforms a given HTML string into to a context-appropriate output string.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!Render!OutputStrategyInterface.php/interface/OutputStrategyInterface/8.1.x