You are here

public function WebformTwigExtension::webformHtmlEditorCheckMarkup in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Twig/WebformTwigExtension.php \Drupal\webform\Twig\WebformTwigExtension::webformHtmlEditorCheckMarkup()

Runs HTML markup through (optional) text format.

Parameters

string $text: The text to be filtered.

array $options: HTML markup options.

Return value

array Render array containing 'processed_text' or 'webform_html_editor_markup'.

See also

\Drupal\webform\Element\WebformHtmlEditor::checkMarkup

File

src/Twig/WebformTwigExtension.php, line 56

Class

WebformTwigExtension
Twig extension with some useful functions and filters.

Namespace

Drupal\webform\Twig

Code

public function webformHtmlEditorCheckMarkup($text, array $options = []) {
  return WebformHtmlEditor::checkMarkup($text, $options);
}