(self, text)
Fix for https://github.com/openatx/facebook-wda/issues/33
        Returns:
            string with properly formated quotes, or non changed text
Fix for https://github.com/openatx/facebook-wda/issues/33
        Returns:
            string with properly formated quotes, or non changed text
Fix for https : // github . com / openatx / facebook - wda / issues / 33 Returns : string with properly formated quotes or non changed text
def _add_escape_character_for_quote_prime_character(self, text):
        """
        Fix for https://github.com/openatx/facebook-wda/issues/33
        Returns:
            string with properly formated quotes, or non changed text
        """
        if text is not None:
            if "'" in text:
                return text.replace("'", "\\'")
            elif '"' in text:
                return text.replace('"', '\\"')
            else:
                return text
        else:
            return text
def _add_escape_character_for_quote_prime_character ( self , text ) : if text is not None : if "'" in text : return text . replace ( "'" , "\\'" ) elif '"' in text : return text . replace ( '"' , '\\"' ) else : return text else : return text