Revert "New API for replacing elements in the final JsonML. Also changes spoiler"

This reverts commit 6b9b2d3d6ad0dfc026fbf66d250220eab2c8c8fe.

We have come up with a better solution that does not involve HTML
parsing.