View Single Post
  #1 (permalink)  
Old Mar 29th, 2008, 09:04
Jack Franklin's Avatar
Jack Franklin Jack Franklin is online now
Resources Administrator

SuperMember
Join Date: May 2007
Location: Cornwall, England
Posts: 1,317
Blog Entries: 8
Thanks: 12
Thanked 5 Times in 5 Posts
Replacing < with &lt; and > with &gt;

Hi all,

When a user adds a comment to the blog, their entry is put into the database using '<' and '>' so when the comment is displayed, it actually displays the code properly, not the code itself. How can I replace < and > with &lt; and &gt;? I know you use str_replace but you can only replace one thing in that right? So what do I do?
__________________
Resources Administrator


Reply With Quote