Plugins ignored a line breaks or tag in the WordPress comment functions


I found out there is a plugins for ticket support. It uses the WordPress comments functions in the ticket system reply.

The issue is the plugin will not accept a line break or with <br.>. How can I make it to accept the <br.> tag or lines break?

                <div class="reply_form">
                    $comments_args = array(
                        'title_reply' => __('Reply', 'orbisius_support_tickets'),
                        'title_reply_to' => '',
                        'label_submit' => __('Send', 'orbisius_support_tickets'),
                        'comment_notes_after' => '',
                        'comment_notes_after' => '',
                        'comment_notes_before' => '',
                        'comment_field'        => '<p class="comment-form-comment"><label for="comment">' . '</label> <textarea id="comment" name="comment" cols="45" rows="5" maxlength="65525" required="required"></textarea></p>',

Here is the plugin if you are interested.

Live Demo Website with the plugin installed:

Line-break applied.
Pictures Examples
After Submit, the line-break are not working.
After Submit Comments

in progress 0
Liang 10 months 2021-10-09T11:54:06-05:00 0 Answer 0 views 0

Answer ( 1 )


    It works after I added the CSS code! div.reply { white-space: pre-line !important; } appreciate it!

Leave an answer