Tables: Removed HTML tags before doing any filtering for formatted number

Fixes #5723