Removing all HTML tags from a webpage

后端 未结 4 740
温柔的废话
温柔的废话 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 18:48

    If you want to remove all HTML tags and also all script tags (and their contents), you can use the following:

    sed 's/
    
                                     
                  
提交回复
热议问题