async def enclose_tags_in_spoilers(tags):
    """
    Encloses the tags in spoilers and returns the resultant string.
    """

    tags = tags.split(", ")
    tags = [tag.strip("[]'") for tag in tags]
    tags = map(lambda str: "||" + str + "||", tags)
    tags = ",".join(tags)

    return tags