Skip to content Skip to sidebar Skip to footer

Display Textarea Output As A List With Bullets

I have a form with a textarea into which my clients write several phrases/sentences of which typically each one spans one or two lines, and they press the return key to insert a li

Solution 1:

Split the string by new lines and implode it with '<ul><li>' . implode('</li><li>', $string) . '</li></ul>'.


Post a Comment for "Display Textarea Output As A List With Bullets"