Using the Bitnami WordPress Multisite AMI on EC2, when I create a page with the following text:
When I publish or update, the tags disappear, so the code does not run.
On a basically identical single site hosted elsewhere, this code works fine.
Both sites running WordPress 5.2.2., WordPress 2019 theme active, no plugins active.
1 - Pages
2 - Add New
3 - Add title: "alert test"
4 - Click three vertical dots in the upper right
5 - Code editor (enter the code shown above)
6 - Publish
7 - View Page
(result: displays the text that was between the tags -- no alert, no console log event)
8 - Edit (returns to edit screen)
(result: script tags are missing on edit screen)
EC2 Instance ID: i-0202f23107a3fc51e
(Can provide a link to a youtube video showing the problem. Prefer to do this privately.)