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:

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
77 Like 18 Dislike
Previous forums Next forums
Other forums

Email Processor
I have a few questions so this post will be a larger one! Sorry, but I'm a bit of a PHP newbie so be

User registration and login
I don't know whether this is the correct forum, if not i apologise but am pretty desperate at the mo

Insert Failing.
Hey,
I am making a Sign up page for a website, but the insert query into the Database does not se

problem with query error
First Thanks to those who helped me on my previous posts, and the following code i'm using is not mi

How would I protect......
I have a from, actually, a good amount of forms. How can I make it so you can't type the characters:

PHP / MySQL Associative Multidimensional Array:
Hello.

I have data in a MySQL Table that adheres to the below: (note, no index, could add if

mysql select query problem
how can i select multiple fields from multiple table in one query like

i have table name t1 a

SuperCali PHP Event Calendar
does anyone have any experience with the SuperCali PHP Event Calendar? I could use some assistance

Image resize
Hi again fellers

I managed to sort out the issues with the folder,

Final hurdle is th

Target costs on Process orders not calculating
Hi All,

We have released standard costs for all the materials. We have also done Goods r

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