Whatever is to the right of
< is being deleted if I don't have a following
>, else everything in between
> is being deleted. Is there a way to bypass this sanitization?
The approach for evading a filter, is completely dependent upon the filter(s) that are being used and which type of XSS scripting attack is being performed.
According to OWASP, "Both reflected and stored XSS can be addressed by performing the appropriate validation and escaping on the server-side"
Input filtering is not be enough to prevent XSS, and here is a list of tests to run to see if filtering is broken.