CBK Support Plugin - New Line in Textarea
on :January 19, 2022, 7:52 pm #584
Hello,
In the Osclass support plugin v1.2.1 ticket textarea, the script removes all the HTML tags (great for security), however a issue appears when a user sends a larger ticket with multiple sentences/lines, as all the text will appear on the same line.
My question is how to implement just the nl2br function in the textarea, in order for it to detect when a user adds a new line and output it correctly?
Like this:
I found this suggestion but couldn't make it work.
Thanks!
Re: CBK Support Plugin - New Line in Textarea
on :January 22, 2022, 10:24 am #585
<?php echo nl2br(h_cbs_ticket_description_ticket_description()); ?>
Re: CBK Support Plugin - New Line in Textarea
on :January 26, 2022, 4:24 pm #586
Works perfectly.
Thanks a lot Calin!