I have a column where the user can save a multiple-line input. Is there any way I can wrap each line with some given tags?
For example: the user puts
Some line 1
Some line 2
But it should be saved in my database as
[Label]Some line 1[/Label]
[Label]Some line 2[/Label]
Is there any way to do so?
Thanks in advance!
Spit the text into a list of texts
Format the list as text
For each list item write [Label]This Text[/Label]
Then split the text back into a list of texts (assuming you need to)