You can use repr()
for this purpose:
print(repr(text))
This will also add quotes, and escape other characters like tabs, backspaces, etc.
Other option is to replace the newlines:
print(text.replace('\n', '\\n'))
This will escape only line breaks and no other special characters.
solved How can I Print \n after each sentence?