Java. How to check that the string contains (if) only allowed html tags? : Allowed tags are stored in the list. I need a simple validation method that returns false if the test string contains *any* "not allowed tags".