text = replace(text, "tr(.*?)", "tr", "<tr>", "</tr>");

        text = replace(text, "td(.*?)", "td", "<td>", "</td>");

        text = replace(text, "table(.*?)", "table", "<table>", "</table>");

        text = replace(text, "align=(.*?)", "align", "<p align=$2>", "</align>");