简体   繁体   English

如何使用xidel从HTML文件中排除标签?

[英]How to exclude a tag from an html file with xidel?

How to extract text1 from the following file using xidel? 如何使用xidel从以下文件中提取text1

<html>
<body>
        <div class="class1">
                text1
                <table><tbody>
                <tr>
                    <td>t1tr1td1</td>
                    <td>t1tr1td2</td>
                </tr>
                </tbody></table>
        </div>
</body>
</html>
xidel file.html -e "//div/text()"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM