Changeset 6026 for trunk/wp-includes/atomlib.php
- Timestamp:
- 09/03/2007 11:32:58 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/atomlib.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/atomlib.php
r6025 r6026 1 1 <?php 2 /* 3 * atomlib.php - Atom Syndication Format PHP Library 2 /* 3 * atomlib.php - Atom Syndication Format PHP Library 4 4 * 5 5 * Project: http://code.google.com/p/phpatomlib/ … … 7 7 * Author: Elias Torres <elias@torrez.us> 8 8 * Version: 0.4 9 * 9 * 10 10 */ 11 11 … … 166 166 } else if(in_array($tag, $this->ATOM_CONTENT_ELEMENTS) || in_array($tag, $this->ATOM_SIMPLE_ELEMENTS)) { 167 167 $this->in_content = array(); 168 $this->is_xhtml = $attrs['type'] == 'xhtml'; 169 $this->is_html = $attrs['type'] == 'html' || $attrs['type'] == 'text/html'; 168 $this->is_xhtml = $attrs['type'] == 'xhtml'; 169 $this->is_html = $attrs['type'] == 'html' || $attrs['type'] == 'text/html'; 170 170 $this->is_text = !in_array('type',array_keys($attrs)) || $attrs['type'] == 'text'; 171 171 $type = $this->is_xhtml ? 'XHTML' : ($this->is_html ? 'HTML' : ($this->is_text ? 'TEXT' : $attrs['type'])); … … 195 195 # if we are ending the original content element 196 196 # then let's finalize the content 197 if($this->in_content[0][0] == $tag && 197 if($this->in_content[0][0] == $tag && 198 198 $this->in_content[0][1] == $this->depth) { 199 199 $origtype = $this->in_content[0][2]; … … 277 277 } 278 278 } 279 } 279 } 280 280 281 281 if($attr) { … … 305 305 function xml_escape($string) 306 306 { 307 return str_replace(array('&','"',"'",'<','>'), 308 array('&','"',''','<','>'), 307 return str_replace(array('&','"',"'",'<','>'), 308 array('&','"',''','<','>'), 309 309 $string ); 310 310 }
Note: See TracChangeset
for help on using the changeset viewer.