这种转换怎么做?
<table>
<tr>
<td width="181" align="center"><img src="images/tslm.jpg" width="175" height="181"></td>
</tr>
</table>
如何把上面的HTML代码内容转换成下面的
document.write ("<table>");
document.write ("<tr>");
document.write ("<td width=\"181\" align=\"center\"><img src=\"images/tslm.jpg\" width=\"175\" height=\"181\"></td>");
document.write ("</tr>");
document.write ("</table>");
因为我要保存为一个js文件 ,用来引用的,谁知道这样怎么转,有正规吗?