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
273 Like 24 Dislike
Previous forums Next forums
Other forums

Remove Rows From Database ad
Hi All,

I have this:

Code: [Select]<?php
session_start();
include('../com

Local file browser with php
Halo..

So this is what i want to create. I have a folder that i share and it has many movies.

how to insert value
I am having file bookissueadd.php..... in which i am having tag

<td height="21&q

tag inside php...
hi


Code: <?php
echo "<td width="$columnWidth%" align=&

Linkage between two scripts
Okay say I have this for a link in a script:

Code: <li><a href="#&q

Install page
How do I make it so when a user submits information on the Install page, it'll right it into the cor

Need help urgant
why down my code ony return one item instead of all the items selected.

$arr = array($date,$

ok i need to join all this pages to make 1 neat code
i have 5 pages that make up my tv guide it works 100% but i want to make it 1 page if i can or 2, i

Remove values in array2 from array1
I have two arrays.

Array 1 is where the array key holds various different numbers. For exampl

filesize() returns 0
I have a socket program that runs in an infinite loop, listening for connections, in this socket I h

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