def escape_quotes(text):
    """Function to escape any ' or " symbols present in the string

    :param text: Input string
    :param type: str

    :returns: Escaped string
    :rtype: str
    """
    if text is not None:
        return text.replace("'","\\'").replace('"','\\"')