def get_service(hass, config):
    if not validate_config({DOMAIN: config},
                           {DOMAIN: ['sender', 'password', 'recipient']},
                           _LOGGER):
        return None

    return XmppNotificationService(
        config.get('sender'),
        config.get('password'),
        config.get('recipient'),
        config.get('tls', True))


# pylint: disable=too-few-public-methods
Escape `</script>` tags in 'text' so that it can be placed within a `<script>` block without
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/notify/xmpp.py/get_service--crossover with--dataset/ETHPy150Open torchbox/wagtail/wagtail/wagtailcore/utils.py/escape_script