public static function WebformXss::getAdminTagList in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Utility/WebformXss.php \Drupal\webform\Utility\WebformXss::getAdminTagList()
Gets the list of HTML tags allowed by Xss::filterAdmin() with missing <label>, <fieldset>, <legend>, <font> tags.
Return value
array The list of HTML tags allowed by filterAdmin() with missing <label>, <fieldset>, <legend>, <font> tags.
3 calls to WebformXss::getAdminTagList()
- WebformComputedBase::setWebformComputedElementValue in src/
Element/ WebformComputedBase.php - Set computed element's value.
- WebformHtmlEditor::getAllowedTags in src/
Element/ WebformHtmlEditor.php - Get allowed tags.
- WebformTwigExtension::webformToken in src/
Twig/ WebformTwigExtension.php - Replace tokens in text.
File
- src/
Utility/ WebformXss.php, line 19
Class
- WebformXss
- Provides webform helper to filter for cross-site scripting.
Namespace
Drupal\webform\UtilityCode
public static function getAdminTagList() {
$allowed_tags = Xss::getAdminTagList();
$allowed_tags[] = 'label';
$allowed_tags[] = 'fieldset';
$allowed_tags[] = 'legend';
$allowed_tags[] = 'font';
return $allowed_tags;
}