如何跳过错误语法php simplehtmldom
我想保存修改后的HTML 我使用了php_simplehtmldom库和dump by save函数 但是simplehtmldom库会自动修改错误的语法 有人知道如何忽略保存而不重新使用错误的语法吗 我不想像下面那样替换。我只想为输入标签添加标题属性 前 保存结果如何跳过错误语法php simplehtmldom,php,html,parsing,simple-html-dom,Php,Html,Parsing,Simple Html Dom,我想保存修改后的HTML 我使用了php_simplehtmldom库和dump by save函数 但是simplehtmldom库会自动修改错误的语法 有人知道如何忽略保存而不重新使用错误的语法吗 我不想像下面那样替换。我只想为输入标签添加标题属性 前 保存结果 <table border=0 cellpadding=0 cellspacing=0 width=295 style="padding-left:5"> <tr><td height="1
<table border=0 cellpadding=0 cellspacing=0 width=295 style="padding-left:5">
<tr><td height="12" colspan="2"></td></tr>
<tr><td height="20" class="fc_55"><img src="/web/design/{$_DESIGN}/images/dot_2px.gif" style="margin:0 0 3 0"></td>
- <td align="right" class="fc_55"" width="78">[2007-02-21]</td>
+ <td align="right" class="fc_55">[2007-02-21]</td>
- <input type="text" style="width:251" align="absmiddle" class="border">
+ <input type="text" style="width:251" align="absmiddle" class="border" title="title">
</tr>
预期结果
<table border=0 cellpadding=0 cellspacing=0 width=295 style="padding-left:5">
<tr><td height="12" colspan="2"></td></tr>
<tr><td height="20" class="fc_55"><img src="/web/design/{$_DESIGN}/images/dot_2px.gif" style="margin:0 0 3 0"></td>
<td align="right" class="fc_55"" width="78">[2007-02-21]</td>
- <input type="text" style="width:251" align="absmiddle" class="border">
+ <input type="text" style="width:251" align="absmiddle" class="border" title="title">
</tr>
预期的结果是什么?
<table border=0 cellpadding=0 cellspacing=0 width=295 style="padding-left:5">
<tr><td height="12" colspan="2"></td></tr>
<tr><td height="20" class="fc_55"><img src="/web/design/{$_DESIGN}/images/dot_2px.gif" style="margin:0 0 3 0"></td>
<td align="right" class="fc_55"" width="78">[2007-02-21]</td>
- <input type="text" style="width:251" align="absmiddle" class="border">
+ <input type="text" style="width:251" align="absmiddle" class="border" title="title">
</tr>