Summery Summery

Determine the type of a string of data with the data formatted.

Syntax Syntax

prep_atom_text_construct( string $data )

Description Description

Tell whether the type is text, html, or xhtml, per RFC 4287 section 3.1.

In the case of WordPress, text is defined as containing no markup, xhtml is defined as "well formed", and html as tag soup (i.e., the rest).

Container div tags are added to xhtml values, per section

Parameters Parameters


(string) (Required) Input string

Return Return

(array) array(type, value)

Source Source

File: wp-includes/feed.php



Changelog Changelog

Version Description
2.5.0 Introduced.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.