I would like to split a string by comma, but commas inside <p></p>
should be ignored.
For example if I have the below String
" Test1, test2, <p> test3, test4, test5, </p> , test6, test7"
I need the result to be :
Test1
Test2
<p> test3, test4, test5, </p>
test6
test7
Using special character how can I achieve this ?