I am having some typical problems with string replace.
First of all, I am getting a 'Rich Text Format' on HTML by using Tinymce
Then , i process the HTML string with mysql_real_escape_string($_POST['desc']);
But, when i echo the values from database, there are random strings containing '= '. I tried removing it by
PHP:
html_entity_decode($d1);
str_replace('= ','', $d1);
preg_replace('= ','', $d1);
preg_replace('/= /','',$d1);
str_replace('= ','',$d1);
& by Jquery
$('#descc').text(function (i, old) {
return old
.replace('/= /', ' ');
});
but no use.
Please help...you can check the description HERE