如何使用xidel从html文件中排除标记?

时间:2017-01-29 09:36:35

标签: html parsing xidel

如何使用xidel从以下文件中提取 text1

<html>
<body>
        <div class="class1">
                text1
                <table><tbody>
                <tr>
                    <td>t1tr1td1</td>
                    <td>t1tr1td2</td>
                </tr>
                </tbody></table>
        </div>
</body>
</html>

1 个答案:

答案 0 :(得分:0)

xidel file.html -e "//div/text()"
相关问题