presidio-analyzer/analyzer/matcher.py
def __sanitize_text(self, text):
        """Replace newline with whitespace to ease spacy analyze process

        Args:
          text: document text
        """

        text = text.replace('\n', ' ')
        text = text.replace('\r', ' ')
        return text
Replace newline with whitespace to ease spacy analyze process

        Args:
          text: document text
        
Replace newline with whitespace to ease spacy analyze process
Replace newline with whitespace to ease spacy analyze process
def __sanitize_text(self, text):
        text = text.replace('\n', ' ')
        text = text.replace('\r', ' ')
        return text
def __sanitize_text ( self , text ) : text = text . replace ( '\n' , ' ' ) text = text . replace ( '\r' , ' ' ) return text
Replace newline with whitespace to ease spacy analyze process
Replace newline with whitespace to ease spacy analyze process
"""Replace newline with whitespace to ease spacy analyze process

        Args:
          text: document text
        """
self
text
None