def sanitize(text):
    """Sanitize text.

    This attempts to remove formatting that could be mistaken for markdown.

    Args:
        text (str): text to sanitise.

    Returns:
        str: sanitised text.
    """
    if '```' in text:
        text = text.replace('```', '(3xbacktick)')

    if '|' in text:
        text = text.replace('|', '(pipe)')

    if '_' in text:
        text = text.replace('_', r'\_')

    return text