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

Detail Expenses Report by Cost Center
I would like to obtain a report out of SAP that shows a list of expenses by cost center that shows t

Windows 7
Windows 7 default user account control worries experts. Corporate IT departments should be pleased w

CHMOD script
Hi,

I need a script to read all files in a folder and set to 777.

Can anyone help out

Can I call a class inside a function?
I have a class written in another file that handles my image resizing.

Can I do this (php say

Strange php code found on my website
I got hacked and the following code was placed within my files:

Code: [Select]<?
/*

How can I Compare two xml documents?
Hi all,

I am doing a POC for my project and I am using XE database 10g version.

tag inside php...
hi


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

Get word number x from string?
How can I use a function to loop through a string, and "have a look at" every word in the

There was a problem with the request. (Code: 0)
Any Idea what could cause this? I get it randomly at best. But with both IE and FF. It derives from

multipart emiail forms
Hi All,

I am new to the boards and I've been working on a form (which is rather massive, imo

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