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

Apart from cron
I need to run a php file every one hour. Is there any other solution apart from cron job?

Regarding accessing SQL query issued by any user in Oracle 10g
Hi all,
i want to know the queries issued by various users accessing a database...

Save file by click
Hello.
I'm not understand how to save file from page. I'd like make link to file with save abil

DateObject and Nulls
Hi all,

I have an array mapped to a value object. One of the items in the array is a PHP Date

asking for direction
I have 2 tables in my data, which are "post" and "event"
I won't make a summa

Dealing with code in db query
I am dealing with C code and I need to make sure it is encoded some how to ensure its integrity and

Php Mysql Page Loading Notice
Hi all,

I was wondering if there is a way (Sure there is) of showing a message or an image wh

utl_file open error
i have file in the unix path

Path /popdev01/pop/popdevb/tfi/

File name

Read from forum
Haven't written anything forever and I would like to get back.
What I'm trying to do is getting t

Cant display mysql data
Hey all,

I am learning php and my first goal is to create a simple CMS. At the moment I am st

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