1. Osclass Forum
  2. Plugins
  3. CBK Support Plugin - New Line in Textarea

CBK Support Plugin - New Line in Textarea

Started by Traian, January 19, 2022, 7:52 pm

  • 1

Traian

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:

  • First sentence.
  • Second sentence.


  • Third sentence.


I found this suggestion but couldn't make it work.

Thanks!

  • << Last edit: January 19, 2022, 7:55 pm by Traian >>
  • Quote

calinbehtuk

Re: CBK Support Plugin - New Line in Textarea

on :January 22, 2022, 10:24 am #585

Code: [Select]
​<?php echo nl2br(h_cbs_ticket_description_ticket_description()); ?>


Traian

Re: CBK Support Plugin - New Line in Textarea

on :January 26, 2022, 4:24 pm #586

Works perfectly.

Thanks a lot Calin! :D

  • 1
Subscribe
X

Subscribe!

Subscribe to get the latest listings, updates and special offers delivered directly in your inbox.