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

extract a file from zip file
hi,
i know how to unzip a zip file in php, but is there a way to just extract a certain file only

Using unserialize()
Hi there.

I have some data in my database that is serialized.

e.g.

a:2:{i:0

Simple image grab script.
I was wondering if it was possible and if anyone knew how to make a simple php script that looks at

square instead of number
Hello
I do not know why but this code seems to work fine only in my xampp local insallation but n

Recode Abap Dynpro into Web Dynpro
Hi All,
A client has asked us to look at rearchitecting a custom transaction that was developed

SAP Project Module
I have seen in the SAP Project Module,plan cost and budget are not equal and even difference is sign

recrawling
Can anyone suggest me how may i know a page is updated before it is being downloaded, so that i can

Why use OOP?
Can someone explain to me why I should use OOP instead of procedure based code.

Im building a

want a code for uploading and downloading
i m trying to upload and download to my site..i need upload and download code ...i use a code for up

first few characters only
hi, does anyone know how to use PHP to take the first few words of a text and limit them? i have see

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