In components/com_phocagallery/views/category/view.html.php at lines
1345
and
1346
there is code
Code: Select all
$this->items[$iS]->description = str_replace("\n", '<br />', $this->items[$iS]->description);
Code: Select all
<p>Text line 1</p>
<p>Text line 2</p>
Code: Select all
<p>Text line 1</p><br/><p>Text line 2</p>
I suggest to add <br/ > only if there is not HTML in the description
Smth. like this
Code: Select all
if (strip_tags($this->items[$iS]->description) == $this->items[$iS]->description) {
$this->items[$iS]->description = str_replace("\n", '<br />', $this->items[$iS]->description);
}