XF 2.2 Quotes in BBCode Text Parsing Improperly

Annasiel

New member
Hello!

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:

1707389937273.webp

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

1707389989207.webp

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:

1707390045843.webp

This code, when parsed, appears like this:

1707390121100.webp

When it should instead be appearing like this:

1707390141939.webp

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 ':

1707390313931.webp

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.
 

Attachments

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