New API for replacing elements in the final JsonML. Also changes spoiler
tag handling to be more robust with repsect to HTML content.