I resolved the issue by inserting the HTML elements into the database directly rather than using the HTML editor in the BO.
SET `body` = '[html]'
WHERE `id` = [id of page]
AND `code` = [language code];
It is important to note that I also had to remove all carriage returns and new lines (\r
) from the HTML before pasting it into my UPDATE