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

search query in mysql in php problem
my search query wont work, i know, that my codes are correct.please help

Code: [Select]&l

simple ping code
been searchin the site/web and found code thats simple but doesnt work.

I have a personal we

Operator precedence assistance.
I did a quick Google search and couldn't quite find the answer I wanted in terms I could understand,

if description does not contain the following words
Hello everyone,

I am parsing a MS Excel (.xls) file and adding it's content to a mySQL databa

str_replace help
I am thinking str_replace is my only option to filter outputs from my database to convert them to sa

Beginner PHP code help
Hi I'm new to php but if someone could please read the question below and help it would be great.

Error when call dll from oracle
Hi all, please help me!

I have dll write C language, I want call it from oracle procedur

Logic question
im wondering what's the best method to do the above list:

it is for alliance @ MMORPG game

phpMailer will not connect using SMTP
I am trying to use phpMailer with smtp:

Code: [Select]$mailer = new PHPMailer();
$mailer-&

Form Help
Here is the form:

Line number On/Off | Expand/Contract<? include("../include/sess

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