diff --git a/src/widgets/kopenwithdialog.cpp b/src/widgets/kopenwithdialog.cpp
--- a/src/widgets/kopenwithdialog.cpp
+++ b/src/widgets/kopenwithdialog.cpp
@@ -497,7 +497,7 @@
if (_urls.count() == 1) {
text = i18n("Select the program that should be used to open %1. "
"If the program is not listed, enter the name or click "
- "the browse button.", _urls.first().fileName());
+ "the browse button.", _urls.first().fileName().toHtmlEscaped());
} else
// Should never happen ??
{
@@ -517,7 +517,7 @@
if (text.isEmpty() && !_urls.isEmpty()) {
if (_urls.count() == 1) {
const QString fileName = KStringHandler::csqueeze(_urls.first().fileName());
- text = i18n("Select the program you want to use to open the file
%1", fileName);
+ text = i18n("Select the program you want to use to open the file
%1", fileName.toHtmlEscaped());
} else {
text = i18np("Select the program you want to use to open the file.",
"Select the program you want to use to open the %1 files.", _urls.count());