Stripped tags in Discussions (pre-review, review discussion, etc..)

I am using ojs 3.1.2 (upgraded from 2.4.8). On my development server everything is fine, but on production server text in discussions is messed up. Looks like html tags are stripped. There are no errors in php error log, or in js console. Php versions on both servers are same (7.1, i tried 7.3 and 7.4, no difference). Development server is on windows, IIS, production is debian linux.

I have no idea what is wrong. I am attaching two pictures to show the issue (part of text is intentionally deleted):
Capture1 Capture2

Hi @Dragoljub_Djordjevic,

Check the allowed_html setting in your config.inc.php to see whether it’s identical in both environments.

Regards,
Alec Smecher
Public Knowledge Project Team

Right in the centre, as always. I should buy you a beer or something :slight_smile:

I didn’t have this tags in production config (forum is also stripping tags, I can’t paste full line)

a[href|target|title],em,strong,cite,code,ul,ol,li[class],dl,dt,dd,b,i,u,img[src|alt],sup,sub,br,p

Hi @Dragoljub_Djordjevic,

Just lucky! I’m glad to hear it’s working.

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like