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

Need help in Generating Combinations
Need help generating all possible combination of names in an array

Lets say i have the follow

Passing JS to PHP
So I have the following
Code: <?php
getdetails(?><script type="text/

include function being weird?
I have a very simple system to grab an IP outputted by a PHP file.. (for a project I have) but it ou

Keeping data in form
How can I keep whatever I write in the form?

Using real time in php
I'm very average at PHP and im looking to introduce time to something on my site.
Its a sports si

Error querying database.
I get the above error when trying to insert some values to a datatable.
Here's the code :

Displaying pictures
i have worked my way through storing images in directory and storing the location in mySQL db.Now i

Forgot password won't work
My forgot password thing is not working properly. It is giving me this errorMailbox unavailable. The

Data storage spaces in varchar2
Trying to understand what's happening.
I am selecting a value from a table that is defined as c

Working with Dates, help.
Sooo to make a long story short, here's what im trying to accomplish.

I need to create a drop

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