Bash script to convert from HTML entities to characters

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

    I have created a sed script based on the list of entities so it must handle most of the entities.

    sed -f htmlentities.sed < file.html
    

提交回复
热议问题