I have a joomla 3 site using the Easyblog add-in. I often have code snippets in my blog and have found that "hilite.me" is my favourite html generator for code. However, when I insert this code into my blog, either joomla or easyblog is mangling it so bad it is unrecognisable.
Take for example this bit of code - Codepen - Hilite me html
After inserting this code into the JCE editor in easyblog, it looks fine. However, when looking at the blog post on my website, all line breaks are removed and so are all tabs/whitespace for indenting. As you can see in the "hilite me" generated html, it is wrapped in the "pre" tag. My limited understanding of html tells me that you must honour all line breaks and white space within a pre. It seems to me that some transformation is happening behind the scenes which "corrupts" the "pre" tag intention. Does anyone know what might be happening and more importantly how I can get joomla/easyblog to respect my inserted html asis please?
Thanks
David