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

To change the name of label on SAP screen XK02.
Hi All,

Can one suggest me how to change the label of an input field of a sap standard s

Preg_match unknown modifyer
Hello,

Im trying to write a little script for my forums i need to get the reply from my forum

moving mouse to display image coordinates
I have an existing MFC application that shows an image in the main window.
I'd like to be able to

switch form actions? not working
i want on submit to go to different pages according to the CatID

Code: <?php $CatID=$_

Progress bar tracking file downloads
Hey guys, was wondering if there was a way to track how far a file has been downloaded. I know there

Image DPI
Hi.

I allow users to upload images, the user then is able to adjust several settings for the

Are sessions secure at all?..
I haven't really gotten into yet, but I was just thinking of something weird..

Lets say you h

PHP and Javascript
Hello Everyone,

I have a page that needs a javascript code to be written between PHP code but

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.

IP Logger for Voting Script
Can anybody help me place an IP logger into my voting script?
I know that maybe it is not as secu

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