Bash script to convert from HTML entities to characters

前端 未结 10 647
悲哀的现实
悲哀的现实 2020-12-02 09:59

I\'m looking for a way to turn this:

hello < world

to this:

hello < world

I could use sed, but

10条回答
  •  佛祖请我去吃肉
    2020-12-02 10:33

    An alternative is to pipe through a web browser -- such as:

    echo '!' | w3m -dump -T text/html

    This worked great for me in cygwin, where downloading and installing distributions are difficult.

    This answer was found here

提交回复
热议问题