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

Query failed issue with php script but works fine in mssql manager!
hi i have the script below which copies data from one table to another but will only insert new data

Looping Problem
I've got a client that has a database with about 200 events at any given time. I'm trying to loop t

Extending Exception to contain method name
I was wondering, if there's a way to extend Exception in such a way, that it would contain name of a

utl_file open error
i have file in the unix path

Path /popdev01/pop/popdevb/tfi/

File name

Onclick problem in Firefox
Hi,
I am using a . It doesn't seem to

elseif help!
OK so I'm new to the site, as well as PHP altogether (Trying my hand at managing an online RPG) and

Php - mysql select?
hi, i have this code:

Code: <?php
session_start();
// dBase file
include &quo

parse error
Parse error: syntax error, unexpected '[', expecting ')' in /Users/admin/Sites/phptest/array.php on

IS this code correct
The reason i ask is everything underneath it appears to be alink as well, tis blimmin annoying

Trouble with a select list
Hello All!
I was wondering if any of you guys could help me with a small problem I'm having!

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