From: Silvio Rhatto Date: Tue, 27 Aug 2013 16:35:26 +0000 (-0300) Subject: TODO: Looks like some RSS convert links to entities twice X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=d56b89890db4726994374a375f97f60b36313d92;p=httruta.git TODO: Looks like some RSS convert links to entities twice --- diff --git a/lib/httracker/functions b/lib/httracker/functions index f2dde7f..929d917 100644 --- a/lib/httracker/functions +++ b/lib/httracker/functions @@ -101,7 +101,7 @@ function httracker_sqlquery { function httracker_iterate { for link in `cat $URLS | xargs`; do # Fix entities - link="`echo $link | $BASE/lib/httracker/html.sed`" + link="`echo $link | sed -f $BASE/lib/httracker/html.sed`" httracker_get "$link" done } diff --git a/lib/httracker/html.sed b/lib/httracker/html.sed index d12f602..859bc25 100755 --- a/lib/httracker/html.sed +++ b/lib/httracker/html.sed @@ -481,6 +481,8 @@ s/<//g s/>/>/g +# TODO: Looks like some RSS convert links to entities twice +s/&amp/\&/g s/&/\&/g s/&/\&/g # http://www.w3schools.com/tags/ref_entities.asp