Zeroanarchy
Technical User
Hi was wondering if someone might be able to help, I have the following code
$content = "<table><tr><td>This is a general description or some usual text that I want to display.</td><td><img src=' alt='Logo' width='50' height='50' /></td></tr></table>";
what I am trying to do is remove elements of it so all that is left is the written description. I know I can do a replace for the <table> <td> <tr> to removes those, but I am unsure as to how I can remove the img section of the above value?? The issue is that the img part will vary it will not always be the same.
Cheers
zeroanarchy
ZeroAnarchy
Experience is a wonderful thing. It enables you to recognize a mistake
when you make it again.
$content = "<table><tr><td>This is a general description or some usual text that I want to display.</td><td><img src=' alt='Logo' width='50' height='50' /></td></tr></table>";
what I am trying to do is remove elements of it so all that is left is the written description. I know I can do a replace for the <table> <td> <tr> to removes those, but I am unsure as to how I can remove the img section of the above value?? The issue is that the img part will vary it will not always be the same.
Cheers
zeroanarchy
ZeroAnarchy
Experience is a wonderful thing. It enables you to recognize a mistake
when you make it again.