Refactor ignored output in XSS check

Also reordered a little bit based on some profiling, so it's not any slower now the conditions are in methods. (Yeah, micro-optimizing.)