C1R Implementation: Difference between revisions

m
finger check
m (Add numeric symbols for nbsp to sed command)
m (finger check)
Line 17:
# unescape HTML codes: replace "&lt;" by "<" etc
function unescapeHTML() {
sed -e 's/&lt\;/</g;s/&gt\;/>/g;s/&nbsp\;/ /g;;s/&#160\;/ /g;s/&#xA0\;/ /g;s/&quot\;/"/g;s/&#40\;/(/g;s/&#41\;/)/g;s/&#91\;/[/g;s/&#93\;/]/g;s/&#123\;/{/g;s/&#125\;/}/g'
}
 
Anonymous user