Code renders incorrectly


#1

I’m sure you’ve noticed this.

Posts containing code blocks frequently render incorrectly, e.g.:

#include <vector>

(Signals & slots in Juce)

Also &   etc

Looks like some Base64 decoding problem maybe?

π


#2

Not really base64 involved I guess. Those that are special characters for HTML (e.g. <, >, & and some others) have been converted to their corresponding HTML entity name ‘<’, ‘>’. ‘&’ and that one gets displayed inside code blocks unchanged


#3

This is present in many posts. I suspect it is an artefact of transferring posts to the new forum database.


#4

Forgot to call encodeURIComponent(textFromTextArea) before form submit?