(value)
return getUnicode(value).replace("\n", " ").replace("\r", "")
Sanitizes string value in respect to newline and line-feed characters

    >>> sanitizeStr('foo\\n\\rbar')
    u'foo bar'
Sanitizes string value in respect to newline and line-feed characters
Sanitizes string value in respect to newline and line - feed characters
def sanitizeStr(value):
    """
    Sanitizes string value in respect to newline and line-feed characters

    >>> sanitizeStr('foo\\n\\rbar')
    u'foo bar'
    """

    return getUnicode(value).replace("\n", " ").replace("\r", "")
def sanitizeStr ( value ) : return getUnicode ( value ) . replace ( "\n" , " " ) . replace ( "\r" , "" )