def clean(elementText):
    """
    Given some text from an XML element (which might be None)
        return a stripped value and with internal CRLF characters replaced by spaces.
    """
    if elementText is not None:
        return elementText.strip().replace('\r\n', ' ').replace('\n', ' '
            ).replace('\r', ' ')
