You are here

public static function WebformXss::getHtmlTagList in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Utility/WebformXss.php \Drupal\webform\Utility\WebformXss::getHtmlTagList()

Gets the standard list of HTML tags allowed by Xss::filter() with missing <font> tag.

Return value

array The list of HTML tags allowed by Xss::filter() with missing <font> tag.

1 call to WebformXss::getHtmlTagList()
WebformHtmlEditor::getAllowedTags in src/Element/WebformHtmlEditor.php
Get allowed tags.

File

src/Utility/WebformXss.php, line 34

Class

WebformXss
Provides webform helper to filter for cross-site scripting.

Namespace

Drupal\webform\Utility

Code

public static function getHtmlTagList() {
  $allowed_tags = Xss::getHtmlTagList();
  $allowed_tags[] = 'font';
  return $allowed_tags;
}