import json


def extract_locator_data(json_data):
    """Extract the HTML snippet that contains the locator data."""

    result = ""
    objs = json.loads(json_data)
    for obj in objs:
        if obj["command"] == "insert" and obj["method"] == "replaceWith":
            result = obj["data"]
    return result