This is a discussion on "Replacing < with < and > with >" within the PHP Forum section. This forum, and the thread "Replacing < with < and > with > are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Replacing < with < and > with >
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
||||
|
Replacing < with < and > with >
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 < and >? I know you use str_replace but you can only replace one thing in that right? So what do I do?
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
|
|
|||
|
Re: Replacing < with < and > with >
use htmlentities()
Last Blog Entry: Cross browser nuisance (Feb 11th, 2008)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| replacing images in adobe cs3 pro | meeuw | Flash & Multimedia Forum | 6 | Feb 29th, 2008 16:27 |
| php replacing £ with £ error :s | uqwebdesign | PHP Forum | 6 | Jul 6th, 2007 09:42 |
| replacing tables | c00rdb | Web Page Design | 0 | Feb 20th, 2007 20:30 |