Jump to content

want to replace certain substring


farazay

Recommended Posts

I am using tinyMCE editor and uploading image from it.After form is submitted,it makes textarea's values as

 

<img width="\"65\"" height="\"66\"" alt="\\"" src="\"images/logo.gif\"">

 

cuz of wrong html,it is not displaying image.I tried to replace

 

$_POST['elm2'] = str_replace('"\"','\"',$_POST['elm2']);

$_POST['elm2'] = str_replace('\""','\"',$_POST['elm2']);

 

but it is not replacing.How can i correct the HTML so that i display image.

 

 

Link to comment
https://forums.phpfreaks.com/topic/224194-want-to-replace-certain-substring/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.