slimboyfatz32 Posted May 6, 2008 Share Posted May 6, 2008 Help i have a PHP script that is outputting toooo many <br> tags and making my XHTML code not validate !! Link to comment https://forums.phpfreaks.com/topic/104374-php-rss-script-outputting-tags/ Share on other sites More sharing options...
conker87 Posted May 6, 2008 Share Posted May 6, 2008 Erm, come please? Link to comment https://forums.phpfreaks.com/topic/104374-php-rss-script-outputting-tags/#findComment-534349 Share on other sites More sharing options...
slimboyfatz32 Posted May 6, 2008 Author Share Posted May 6, 2008 i apologise , here is the script in question (or part of it)........... function display_feed($data) { extract($data); if($TITLE) { $this->retval .= "<h1>"; if($LINK) $this->retval .= "<a href=\"$LINK\" target=\"_blank\">"; $this->retval .= stripslashes($TITLE); if($LINK) $this->retval .= "</a>"; $this->retval .= "</h1>\n"; if($TAGLINE) $this->retval .= "<P>" . stripslashes($TAGLINE) . "</P>\n\n"; $this->retval .= "<div class=\"divider\"><!-- --></div>\n\n"; } if($ENTRY) { foreach($ENTRY as $item) $this->display_entry($item, "FEED"); } } function display_entry($data, $parent) { extract($data); if(!$TITLE) return; $this->retval .= "<P><B>"; if($LINK) $this->retval .= "<a href=\"$LINK\" target=\"_blank\">"; $this->retval .= stripslashes($TITLE); if($LINK) $this->retval .= "</a>"; $this->retval .= "</B>"; if($ISSUED) $this->retval .= " <small>($ISSUED)</small>"; $this->retval .= "</P>\n"; if($AUTHOR) { $this->retval .= "<P><b>Author:</b> " . stripslashes($AUTHOR['NAME']) . "</P>\n\n"; } if($CONTENT) { $this->retval .= "<P>" . stripslashes($CONTENT) . "</P>\n\n"; } elseif($SUMMARY) { $this->retval .= "<P>" . stripslashes($SUMMARY) . "</P>\n\n"; } } Link to comment https://forums.phpfreaks.com/topic/104374-php-rss-script-outputting-tags/#findComment-534363 Share on other sites More sharing options...
conker87 Posted May 6, 2008 Share Posted May 6, 2008 Code* lol. Link to comment https://forums.phpfreaks.com/topic/104374-php-rss-script-outputting-tags/#findComment-534367 Share on other sites More sharing options...
slimboyfatz32 Posted May 6, 2008 Author Share Posted May 6, 2008 Code* lol. your comments are very helpful !! Link to comment https://forums.phpfreaks.com/topic/104374-php-rss-script-outputting-tags/#findComment-534380 Share on other sites More sharing options...
conker87 Posted May 6, 2008 Share Posted May 6, 2008 Sarcasm aside, I was correcting a typo that was a little off. And on topic, whats the error that you're throwing up. Link to comment https://forums.phpfreaks.com/topic/104374-php-rss-script-outputting-tags/#findComment-534385 Share on other sites More sharing options...
slimboyfatz32 Posted May 6, 2008 Author Share Posted May 6, 2008 the PHP script is throwing out a bunch of <br> tags into my html document , which then stops the damn thing from validating , not sure which part of the script is producing this problematic output though ??? Link to comment https://forums.phpfreaks.com/topic/104374-php-rss-script-outputting-tags/#findComment-534388 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.