Improved valid links filter to check for valid html output formats