Changeset 218
- Timestamp:
- 25/02/07 13:01:18 (6 years ago)
- Files:
-
- 1 modified
-
components/blogfeed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
components/blogfeed.php
r216 r218 88 88 $entrydate = ereg_replace(' ', 'T', $row['timestamp']).":00"; 89 89 $entries .= "\t<entry>\n"; 90 $entries .= "\t\t<title>". $row['subject']."</title>\n";90 $entries .= "\t\t<title>".htmlentities($row['subject'])."</title>\n"; 91 91 $entries .= "\t\t<link rel=\"alternate\" type=\"text/html\" href=\"".$user['link']."entry/".$row['shortsubject']."\"/>\n"; 92 92 $entries .= "\t\t<id>".$user['link']."entry/".$row['shortsubject']."</id>\n"; … … 95 95 $entries .= "\t\t<div xmlns=\"http://www.w3.org/1999/xhtml\">\n"; 96 96 //just passing though the raw body will cause the feed to fail if the code isnt valid, perhaps we should chuck everything though tidy on its way in (or even out) once we're on php5 97 $entries .= "\t\t".str_replace("&","&",html_entity_decode($row['body'],ENT_QUOTES,'UTF-8'))."\n"; 97 $config = array('output-xhtml' => true, 'show-body-only' => true, 'wrap' => false); 98 $tidy = new tidy; 99 $tidy->parseString($row['body'], $config, 'utf8'); 100 $tidy->cleanRepair(); 101 $entries .= $tidy; 98 102 $entries .= "\t\t</div>\n"; 99 103 $entries .= "\t\t</content>\n";
