I am trying to replace the garbage in my DB:
UPDATE xxxxxx set body = replace(body,'<p></p><p>','<p>')
Some tags are not replaced because there are line breaks between them ...
In phpmyadmin, I see the following:
yadda yadda<p></p> <p>yadda yadda
This did not work.
UPDATE xxxxxx set body = replace(body,'\\r\\n',''); UPDATE xxxxxx set body = replace(body,'\\r',''); UPDATE xxxxxx set body = replace(body,'\\r','');
WHERE TO BE DEPARTED?
Any ideas?
source share