Problem with opening a script tag with < and &lt; through a CMS

39 views Asked by At

I have a problem trying to put a small matomo tracking script on an old version (7.1) of the LifeRay CMS, of course I'm no coding expert. Using a function of the CMS we have a field we are supposed to use to inject a specific script/code within every page of the website.

Problem is that when I use this field, whatever I write inside gets read as plain text. After some time I found out the possible cause by examining the body through Chrome dev console. What should be a <script> tag, is actually there as &lt;script&gt; . The same happens for the closing tag of course.

By manually editing the html through the Chrome console and simply fixing those characters with "<" and ">" everything works perfectly, but I'm wondering... how can I fix this regularly and not just in the temporary chrome console? I really have no clue what could be causing this in the CMS. (I have other VMs with different websites and the same LifeRay version and there copy/pasting the script worked flawlessly)

I checked the page through and through and there are no other instances of "<" and ">" being swapped with those other strings.

0

There are 0 answers