We get some long reviews and notice the line breaks are stripped.
It looks like they are there when reviewing in Admin, but on publishing the line breaks are all gone, making larger portions of text, hard to read and not very attractive to view.
I found an old post on this but the code given is not in the file in 1.5.6.4
http://forum.opencart.com/viewtopic.php?f=20&t=17324JAY6390 wrote:Infind thisCode: Select all
/catalog/model/catalog/review.php
and replace withCode: Select all
$this->db->escape(strip_tags($data['text']))
and see if that does itCode: Select all
$this->db->escape(nl2br(strip_tags($data['text'])))
Can anyone kindly let me know how to get the line breaks to work so the text looks better in 1.5.6.4?
Many thanks in advance!