How I can replace it

Energetik

New Member
I has a string\[code\] $text =<<<HTML<div align="center"><center><img src='http://ecx.images-amazon.com/images/I/41KZa6thzcL._SS500_.jpg' alt="The Birthday of the World: And Other Stories"/></center><br/> thanks all "coder". </div> HTML;\[/code\]I want replace all " from tag with \" or ' with \' and don't replace if " or ' not in tagand result is\[code\] $text =<<<HTML <div align=\"center\"><center><img src=http://stackoverflow.com/'http://ecx.images-amazon.com/images/I/41KZa6thzcL._SS500_.jpg\' alt=\"The Birthday of the World: And Other Stories\"/></center><br/> thanks all "coder". </div> HTML;\[/code\]Please help me . Great Thanks
 
Back
Top