Better method for dealing with HTML brackets, does not rely on search.