I built plugin in WordPress for write question under tool visual editor, but when get data response to front-end content didn’t break line.

PHP code below:

<?php echo apply_filters('the_content', esc_attr($item['question'])); ?>

Photo data display front-end

How to solve that on front-end.

Thanks Advance.

Read more here: Visual editor didn’t break line when show front-end in wordpress


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: