RT 87288 - filter links according to allowed tags.

I wasn't doing this at all before!