<?php $string = 'DATA<td class="td1">DATA'; $pattern = '@<(\w+)\s+[^>]*>@is'; echo preg_replace($pattern, '<$1>', $string);
You have javascript disabled. You will not be able to edit any code.