Dec-26-2016, 06:12 AM
Any reason why regex wouldn't work?
re.split('[<>]', your_string)Obviously if HTML is an important part of this, you need to consider things carefully.