public function WebformTwigExtension::webformHtmlEditorCheckMarkup in Webform 8.5
Same name and namespace in other branches
- 6.x 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\TwigCode
public function webformHtmlEditorCheckMarkup($text, array $options = []) {
return WebformHtmlEditor::checkMarkup($text, $options);
}