allowed_tags() wordpress function and usage This text is not used because the data attribute has a value

allowed_tags() wordpress function and usage

Home / WordPress / WordPress Wiki / allowed_tags() wordpress function and usage

 

allowed_tags()
Display all of the allowed tags in HTML format with attributes.

Description

This is useful for displaying in the comment area, which elements and attributes are supported. As well as any plugins which want to display it.

Return

(string) HTML allowed tags entity encoded.

Sample Usage

Display allowed HTML tags

$allowed_html_tags = allowed_tags();
echo $allowed_html_tags;

Output:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

 

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments