Visual editor didn’t break line when show front-end in wordpress

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

Leave a Reply

Your email address will not be published. Required fields are marked *