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

validating url
im trying to validate url's sent to me by a form
the url's im collecting are for placing banners

Dynamic links in an include file
I am working on a small piece of code that counts records from a database and displays the result to

Website Direction...
I recently used this code to try and make it so the page loads as http://www.domain.com/ when you ty

Image resize
Hi again fellers

I managed to sort out the issues with the folder,

Final hurdle is th

button.click += new eventhandler() not works in if(!ispostback)
i want to use button.clcik event in function VIewScrap() which is called in if(!ispostback) but itdo

php slowing my site?
Hi all,

I think that one of the reasons that my site doesn't work fast is that the code is ve

Help on Order Entry Form/System Where is best to begin.
I have a dilema and a very short amount of time at this point and I'm looking for some help on decid

Need help with a mail notify function
I was tasked with setting up a site that's been prewritten. The site is basically a form that captur

NOOB needs help with upload file
The intent of this form is to create a folder for a client and upload an image into another folder '

present value of sequence?
Hi

Please help me to find out the present value of sequence?

Thanks

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