I am curl
-ing webpage titles, some of them contain escaped characters (HEX code?), most likely coming from Wordpress esc_url()
https://developer.wordpress.org/reference/functions/esc_url/
# title=$(curl -s $theurl | grep -o "<title>[^<]*" | tail -c+8)
title='Questions & Answers'
touch $title'.txt'
How can I UN-escape or decode these back, without having to make a list and replace them
& = Ampersand
’ = Right Single Quotation Mark
- = Hyphen-Minus
...