HTML Displayed in Joomla Portal Module

Hi,

I’ve been getting the case system up and running on my system, but this is something I’ve not been able to figure out. Our system has a Inbound email configure with email-to-case configured and working. The descriptions for cases that are imported have HTML mark-up. The cases module correctly parses the HTML and displays the text correctly. Where the HTML tags are causing issues it the case response emails and the description text in the Joomla portal (see attachment).

What is strange is that the description shows the HTML tags, but the history removes the HTML. It seems to me like the module that the Joomla portal calls for the description is not parsing the HTML, but I can’t figure out what module that is.

The HTML mail responses I’m not too worried about, but the HTML in the customer portal is a concern. It doesn’t look professional when customers sign in go through their cases. Can anyone point me in the right direction to sort this out?

On a different note, I seen a couple of threads on HTML tags being displayed in description for cases. Would it not be better to strip out the HTML tags and log the case in plain text? We are currently using HESK and it looks like that is how they HESK do it. While it doesn’t look as nice, there are far less compatibility issues and the system worked with much less effort than I’m putting into getting the AOP Cases to work.

I’ve had a brief look at modules/InboundEmail/AOPInboundEmail.php, but didn’t see anything simple to enable. Is this a feature that can be enabled in AOP or is this something to log as a feature request?

KC

Okay, so I solved my own issue in the end. I edited the file components/com_advancedopenportal/models/SugarCase.php in the Joomla module and changed line 7 from:

$this->description = nl2br($this->description);

to

$this->description = nl2br(strip_tags(html_entity_decode($this->description)));

The system is now displaying the case description without the HTML tags.