Thank you Roonaan. That looks very promising.
Just one thing I forgot:
I need to keep the [DEL] tags
i.e.
[DEl]<td>Cell</td><td>Cell
should become
[DEL]<td diffMode="DEL">Cell</td><t
and not
<td diffMode="DEL">Cell</td><t
This is needed in case I have [DEL] tags inline inside the <td> tags (example: <td>This is some [DEL]text[/DEL] inside the cell</td>)
Just one more thing: It seems like I need to save the [DEL] tags as well.
Main Topics
Browse All Topics





by: RoonaanPosted on 2007-10-29 at 06:11:13ID: 20169116
$startTag = '[DEL]'; ndTag, '/').'/ems';
xt));
$endTag = '[/DEL]';
$preg = '/'.preg_quote($startTag, '/').'(.*?)'.preg_quote($e
$text = preg_replace($preg, 'str_replace("<td", "<td diffMode=\"del\"", "\\1")', $text);
echo nl2br(htmlspecialchars($te
Kind regards
-r-