• Fast, but not good. (

    DECLARE @inputString varchar(MAX) = '1<i>;2;4;5;'

    Result of exec is 'XML parsing: line 1, character 97257, unexpected end of input'.

    You need check input string.