Removing all HTML tags from a webpage

后端 未结 4 746
温柔的废话
温柔的废话 2021-02-10 18:13

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 19:07

    Code for GNU sed:

    sed '/]*>//g; /

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

提交回复
热议问题