Commit 0c86ec20 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix parsing text with "<"

parent ff91c1ef
......@@ -181,7 +181,10 @@ void XMLPrintingScriptBuilder::write(const QString &key, const QString &attribut
} else {
write(QStringLiteral("<%1 %2>").arg(key, attribute));
}
write(value);
QString tmpValue = value;
tmpValue.replace(QLatin1Char('<'), QLatin1String("&lt;"));
tmpValue.replace(QLatin1Char('>'), QLatin1String("&gt;"));
write(tmpValue);
write(QStringLiteral("</%1>").arg(key));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment