Remove '?' before '<' and '>' because of UTF16

This commit is contained in:
Julien Wadel 2024-03-07 09:53:05 +01:00
parent ef74c2cb47
commit 83caa0af63
2 changed files with 3 additions and 2 deletions

View file

@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Empty route can now be set in account settings.
- Network remote file can be used in chat attachment on Windows.
- Some crashs.
- Question mark before '<' and '>'
- Update SDK to 5.3.26.
### Added

View file

@ -833,8 +833,8 @@ QString Utils::encodeTextToQmlRichFormat(const QString& text, const QVariantMap&
for(int i = 0 ; i < iriParsed.size() ; ++i){
QString iri = iriParsed[i].second.replace('&', "&amp;")
.replace('<', "\u2063&lt;")
.replace('>', "\u2063&gt;")
.replace('<', "&#x2063;&lt;")
.replace('>', "&#x2063;&gt;")
.replace('"', "&quot;")
.replace('\'', "&#039;");
if(!iriParsed[i].first){