richcleverley
MIS
HI,
I am using tiny_mce wysywig editor to allow a client to change pages on their site. I store the page content in a mysql database, but because of a few issues I have with tinymce I have had to stop it cleaning up the html it produces. Because of this it is inserting some propriety code which screws up my html validation. This is all to do with temporary image and link paths the script uses to display them in the editor.
What I would like to do is have php parse the html and strip them out. They are in the form of
How can I get php to search for these instances and delete them from the string, baring in mind that the content inside of the speech marks is going to be different for each instance.
Thanks,
Richard
I am using tiny_mce wysywig editor to allow a client to change pages on their site. I store the page content in a mysql database, but because of a few issues I have with tinymce I have had to stop it cleaning up the html it produces. Because of this it is inserting some propriety code which screws up my html validation. This is all to do with temporary image and link paths the script uses to display them in the editor.
What I would like to do is have php parse the html and strip them out. They are in the form of
Code:
mce_href="Full_List.htm"
and
mce_src="images/Rentals1.gif"
How can I get php to search for these instances and delete them from the string, baring in mind that the content inside of the speech marks is going to be different for each instance.
Thanks,
Richard