public static function FieldFilteredMarkup::allowedTags

public static FieldFilteredMarkup::allowedTags()

Returns the allowed tag list.

Return value

string[] A list of allowed tags.

File

core/lib/Drupal/Core/Field/FieldFilteredMarkup.php, line 58

Class

FieldFilteredMarkup
Defines an object that passes safe strings through the Field system.

Namespace

Drupal\Core\Field

Code

public static function allowedTags() {
  return ['a', 'b', 'big', 'code', 'del', 'em', 'i', 'ins', 'pre', 'q', 'small', 'span', 'strong', 'sub', 'sup', 'tt', 'ol', 'ul', 'li', 'p', 'br', 'img'];
}

© 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!Core!Field!FieldFilteredMarkup.php/function/FieldFilteredMarkup::allowedTags/8.1.x