Removing all HTML tags from a webpage

后端 未结 4 1068

I am doing some BASH shell scripting with curl. If my curl command returns any text, I know I have an error. This text returned by curl is usually in H

4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-10 18:54

    Code for GNU sed:

    sed '/]*>//g; /

    This might fail, you should better use a html-parsing tool.

提交回复
热议问题