str_replace help


Posted on 16th Feb 2014 07:03 pm by admin

Hey there,

I'm a PHP newb, I'm having troubles with the str_replace function. I want to clean up bad html to valid xhtml, I am using:

Did you know?Explore Trending and Topic pages for more stories like this.
Code: $pee = str_replace('&', '&', $pee);
It works, but doesn't change & to &amp; when the content is inside of <blockquote><p>stuff here & there</p></blockquote>

can anyone assist?
No comments posted yet

Your Answer:

Login to answer
273 Like 24 Dislike
Previous forums Next forums
Other forums

date("now") prints out wrong date ?
Hi Guys
Anyone know why and how I can fix it ?

error checking breaking my code
Hi there, OK first of all, big apologies for what I assume is really fundamental errors in the struc

Members Only
Hi all, for my website i have a members area only which on members can veiw, but at the moment anyon

ORA-01017: invalid username/password; logon denied
Dear All,

I am facing problem in taken backup from db13 it comes up with the following l

Libraries in C++
Hi all,

I have two libraries. one is based targeted on linux platform and uses another li

Sending UDP Raw socket
I truly need help on this. I am trying to write a test program that simulate a network environment

mr8m - reverse document
Friends,

I'm trying to reverse a document held by MIRO, but it reports the message balan

php/mysql problem
Hey all,

Problem: im trying to setup a shop where people can use a drop-down list to select t

Oracle Connectivity
Hi Every One,

Can we access SAP from oracle database.If it possible then please spec

Need help with PHP/MySQL drop down menu
I need help on how I can implement a drop down menu which queries mysql database and output the avai

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash