I am getting a dynamic text from DB via an API call in following format
Test 1<br>Test 2<br>Test 3
How can I break this string where there is a 'br' tag and add line breaks? I need to show the string in below format
Test 1
Test 2
Test 3
Can someone please shed some light.
UPDATE: Tried below code, space is being added instead of new line
gridData.STATUSNOTES = gridData.STATUSNOTES.replaceAll('<br>', '\n');