The code editor module seems to be bugged in a few ways. The first is that you can't edit or type in it until you hit save changes and it refreshes the page. What you have typed in the editor also doesn't show until you click the box and when it shows the CSS is all messed up.
Then the next is that it doesn't seem to be saving some chracters correctly. Notably <> and ''.
For example, if I put in
<script>console.log('loaded in header');</script>
When I try and put that into the header it outputs as
<script><script>console.log('loaded in header');</script></script>
![image](https://private-user-images.githubusercontent.com/100443303/268810125-fbacb814-5d6b-4751-b448-f41bf24ecc75.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTc5MzA4ODAsIm5iZiI6MTcxNzkzMDU4MCwicGF0aCI6Ii8xMDA0NDMzMDMvMjY4ODEwMTI1LWZiYWNiODE0LTVkNmItNDc1MS1iNDQ4LWY0MWJmMjRlY2M3NS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYwOVQxMDU2MjBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kOGQ5NjhkYmJlZDBlMGE3NTJmMmZiMjkwODQ3ZTRlM2FlN2VhMGM2N2RmMWU5MTI4NWMxNzA4NDc1YzMyYzUxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.Lr3KJP1Owzs0VFT4eqhHDcg750qgGe9i49RXtNx5vLw)
No matter which way I try and echo or insert into the header it doesn't seem to ever want to show correctly.
This can also be observed if using the code editor to collect CSS. If you enter code such as
#test > .test {
color: red;
}
The > will be replaced with < and break the CSS.
I thought I could get around it by just using a textarea box but those sanatize the input and remove tons of characters.