dvd player
New Member
i have been trying to remove html from data that comes from my database and place the data into a rss feed i have used htmlentities but it removed most of the xml. for my server side language i have been using PHP\[code\] <?php header("Content-Type: text/xml"); require_once("includes/dbvars.php"); $dbc = mysqli_connect(DB_HOST,DB_USER,DB_PASS,DB_NAME); $query = "SELECT * FROM news LIMIT 30"; $result = mysqli_query($dbc,$query);?><?php echo "<?xml verison=\"2.0\" encoding=\"utf-8\" ?>\n"; ?><rss verison="1.0"> <channel> <title>BamPopPow News Feed</title> <description></description> <link>http://www.bampoppow.com/</link> <webMaster>[email protected]</webMaster> <?php while($row = mysqli_fetch_array($result)) { $title = $row['title']; $poster = $row['poster']; $date = $row['timestamp']; $data = http://stackoverflow.com/questions/12701202/htmlentities($row['data']); echo " <item>\n"; echo " <title>$title</title>\n"; echo " <link>http://www.bampoppow.com/</link>\n"; echo " <description>$data</description>\n"; echo " <author>$poster</author>\n"; echo " <pubDate>$date</pubDate>\n"; echo " </item>\n\n"; } ?> </channel></rss>\[/code\]