I'm using MongoEngine in a project, and I was wondering if and how I need to sanitize user input when creating documents and searching them.
For example, when I'm creating a document by providing data from resources like scraped RSS feeds (with feedparser), they can have almost any type of string as data:
RSS(
rss_link=news.link,
link=news.feed.link,
title=news.feed.title,
subtitle=news.feed.subtitle,
summary=news.feed.summary,
).save()
Or, when I'm exposing said collection for user queries to find relevant RSS resources:
objects = RSS.objects.search_text(user_input).order_by('$text_score')
Does any type of input sanitization need to be done? Is it different for both cases? The documentation doesn't seem to be discussing this.