
March 6th, 2009, 07:05 PM
|
|
Registered User
|
|
Join Date: Sep 2006
Posts: 17
Time spent in forums: 3 h 8 m 23 sec
Reputation Power: 0
|
|
|
PHP GREP - single to double quote in tags
Hi,
I have a string like:
Code:
<p class='essay_caption'>This is Bob's test</p>
I want to change the string so all the ' become " inside the tag, but so it does not affect the ' in Bob's:
Code:
<p class="essay_caption">This is Bob's test</p>
I'm using PHP 5 and wonder if this can be done with ereg_replace.
Thanks for any help
PG
|