def escape_yaml(content):
    """Replace double dollar signs with single to unquote YAML strings."""
    if isinstance(content, str):
        return content.replace("$$", "$").replace(r'"', r"\"")
    else:
        return content