XF 2.2 Quotes in BBCode Text Parsing Improperly


New member

Sorry to bother - currently having some issues with custom forum BBCode that I'm struggling to resolve. There are two tags in question here, the [style] tag which functions like a normal inline style script:


And the [class] tag, which functions like a div with an assigned class:


Up until recently, I've had no issues with either, but recently I noticed an issue when using single or double quotes in the style tag. For example:


This code, when parsed, appears like this:


When it should instead be appearing like this:


I think I've narrowed down the issue to the encoded quotes somehow parsing improperly for the single quotes around 'LEFT RIGHT', because when I view the source, they appear as ' instead of ':


And I tried changing them back to single quotes through view source it seems to change to display correctly on the site. I've tried using single quotes, double quotes, the HTML coding for both, and backslashes before both, nothing seems to work. I was wondering if anyone on here would have any insight onto what might be going on?

Like I said, this is a very recent issue - everything worked perfectly a few days ago, and the only site changes made between then were changing the node layout for a single section, which I can't see causing a problem like this.


  • 1707390358508.webp
    19.7 KB · Views: 0
Top Bottom