Bash script to convert from HTML entities to characters

前端 未结 10 627
悲哀的现实
悲哀的现实 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:23

    With Xidel:

    echo 'hello < : " world' | xidel -s - -e 'parse-html($raw)'
    hello < : " world
    

提交回复
热议问题