I was wondering if anyone would know how to make a function that takes a string (provided in the parameters) and treats every \n as the end and start of a <p> element (excluding the first occurrence). In other words:
$string = "I am about to be\nprocessed."
$string = "<p>I am about to be</p><p>processed.</p>"
Thanks for your help, experts