diff --git a/usr/lib/linuxmint/mintMenu/plugins/applications.py b/usr/lib/linuxmint/mintMenu/plugins/applications.py
index fe4b4ea..262d82f 100755
--- a/usr/lib/linuxmint/mintMenu/plugins/applications.py
+++ b/usr/lib/linuxmint/mintMenu/plugins/applications.py
@@ -1,6 +1,6 @@
#!/usr/bin/python3
-import cgi
+import html
import filecmp
import gettext
import locale
@@ -620,7 +620,7 @@ class pluginclass(object):
self.suggestions.append(item)
def add_search_suggestions(self, text):
- text = "%s" % cgi.escape(text)
+ text = "%s" % html.escape(text)
if self.enableInternetSearch:
self.add_suggestion("/usr/lib/linuxmint/mintMenu/search_engines/ddg.svg",
_("Search DuckDuckGo for %s") % text, None, self.search_ddg)