Merge branch '2.4'
Placed context outside of loop

$actions was inside an if else and therefore not accessible to
appendChild elements.
Adding Reverse Sanitize function on save

Was experiencing issues with escaped charters being saved back to files
rather than maintaining their rendered states so a
General::reverse_sanitise() function is now called to return the file
to it’s original entity state upon save due to General::sanitise being
called to present the file correctly in the browser for editing.
Added json,sass,markdown into code switch case

More file types added to switch case for code presentation in backend
preferences content page.
Merge branch 'master' into 2.4