mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-05 07:58:35 +01:00
Better documentation for prep_atom_text_construct props darkdragon
git-svn-id: http://svn.automattic.com/wordpress/trunk@6516 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b53a070422
commit
c04f475479
@ -178,21 +178,23 @@ function atom_enclosure() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* prep_atom_text_construct() - determine if given string of data is
|
* prep_atom_text_construct() - Determine the type of a given string of data
|
||||||
* type text, html, or xhtml, per RFC 4287 section 3.1.
|
*
|
||||||
|
* 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,
|
* 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).
|
* 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 3.1.1.3.
|
* Container div tags are added to xhtml values, per section 3.1.1.3.
|
||||||
*
|
*
|
||||||
|
* @link http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.3.1
|
||||||
|
*
|
||||||
* @package WordPress
|
* @package WordPress
|
||||||
* @subpackage Feed
|
* @subpackage Feed
|
||||||
* @since 2.4
|
* @since 2.4
|
||||||
*
|
*
|
||||||
* @param string $data input string
|
* @param string $data input string
|
||||||
* @return array $result array(type, value)
|
* @return array $result array(type, value)
|
||||||
* @link http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.3.1
|
|
||||||
*/
|
*/
|
||||||
function prep_atom_text_construct($data) {
|
function prep_atom_text_construct($data) {
|
||||||
if (strpos($data, '<') === false && strpos($data, '&') === false) {
|
if (strpos($data, '<') === false && strpos($data, '&') === false) {
|
||||||
|
Loading…
Reference in New Issue
Block a user