How would I split this string and keep only the unique values using underscore? I do need the br after each value.
Input = 'John Doe<br> John Doe<br> Frank Watts<br> '
Expected Ouput = "John Doe<br> Frank Watts<br> '
What I've tried so far was to split the string using
str.split(' ')
but this breaks the first and last name