Strip Tags?
Posted: Tue Dec 15, 2009 2:45 pm
Hello,
I have a small problem bugging me which is not being fixed as quickly as i thought. I have a table which pulls titles out from the database, the problem being these titles can contain <br /> depending on if the user has hit return during the typing of the title. I am trying to display the title without <br />. I was reading at php.net about the strip_tags function so i tried to implement it here:
The function did not work so i was wondering what you think the best approach would be.
thanks.
I have a small problem bugging me which is not being fixed as quickly as i thought. I have a table which pulls titles out from the database, the problem being these titles can contain <br /> depending on if the user has hit return during the typing of the title. I am trying to display the title without <br />. I was reading at php.net about the strip_tags function so i tried to implement it here:
Code: Select all
echo "<tr>";
echo "<td width='10%' align='left'>$job_id</td>\n";
echo "<td width='12%' align='center'>" . substr($userproof_id,0,8) . "</td>\n";
echo "<td width='60%' align='left'><a href='proofdetails.php?id=$userproof_id&jid=$job_id'>" . strip_tags($proof) . "</a></td>\n"; //-Here is the line i need to strip
echo "<td width='10%' align='center'><a href='proofprocess.php?id=$userproof_id&jid=$job_id'><img src ='images/tick.png'></img></a></td>\n";
echo "<td width='5%' align='center'><a href='proofprocessdeny.php?id=$userproof_id&jid=$job_id'><img src ='images/cross.png'></img></td>\n";
thanks.