def dockerComposeStr()

in src/filter-j2.py [0:0]


def dockerComposeStr(value):
    """
    Formats the given value as a string that can be used within the YAML
    provided to Docker Compose. Characters within the string will be escaped as
    necessary.

    :param value:
        The string to filter.

    :return string:
        A properly escaped YAML string containing the provied value.
    """
    return "'" + value.replace("'", "''") + "'"