Add wrapping and removing wrapping functionality for thumbnail and spoiler tags