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

Php script to read msword file
hi,

I need to read a msword file and i want to print the contents in that word file.

i

Disabling SAP menu
How do I disable SAP menu for all the users and just restrict them to User Menu in SAP ECC 6.0?

button help
i originally had this but realised it is much easier to have a button.

Code: <?php

Help with lottery style system?
I'm working on a currency system for forums and it is going to have a type of lottery system built i

Help with setcookie()
Merry Xmas to those on this foruum
Older guy here with some experience but not allot so please be

Socket Server
In my following socket server, I am trying to listen to a connection through port 12345 in my web br

array_diff weirdness
I'm using the following bit of code

$diff = array_diff($pids, $pidlist);
$diff = array_va

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

What am I missing here? Help!
Hello all!. I can't seem to get this working right. Well - it renders right, but something is goin

Login script (probably a simple error)
dbConfig.php
Code: <?
// Replace the variable values below
// with your specific dat

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