Hello!
I have sample text with a new line character in it, is there a way to convert the character to an HTML line break or prevent it form being removed?
'Hello,\nThis is a test string with a new line character.'
actual output:
'Hello,This is a test string with a new line character.'
expected output:
'Hello,\nThis is a test string with a new line character.'
or
'Hello,<br>This is a test string with a new line character.'
Hi! I realized this is only an issue with some tags, when the are at the beginning of a string, but I don't think that is an issue for my use case so I am closing this.
Hello! I have sample text with a new line character in it, is there a way to convert the character to an HTML line break or prevent it form being removed?
'Hello,\nThis is a test string with a new line character.'
actual output:
'Hello,This is a test string with a new line character.'
expected output:
'Hello,\nThis is a test string with a new line character.'
or'Hello,<br>This is a test string with a new line character.'