summaryrefslogtreecommitdiff
path: root/editeng/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-10-04 12:51:32 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-10-05 22:27:08 +0200
commit73ba9a65834455cba992f1661222f881649af448 (patch)
tree6c1f6e547726dc00984be4f06fc46b7643de3b7a /editeng/source
parentb9519e984adc16d1c66aa7a5c0cdf77b0d0ac5e9 (diff)
use ConvertStringToHTML for the URL too
Change-Id: Iee10356c6311c4ac791dc59081ca2a208d3c0710 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174505 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'editeng/source')
-rw-r--r--editeng/source/editeng/impedit4.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx
index 0417e8f3f4ec..8ffb3faf47b8 100644
--- a/editeng/source/editeng/impedit4.cxx
+++ b/editeng/source/editeng/impedit4.cxx
@@ -1106,7 +1106,7 @@ OString ImpEditEngine::GetSimpleHtml() const
OUString aRTFStr = EditDoc::GetParaAsString(pNode, nIndex, nIndex + rTextPortion.GetLen());
if (pURLField)
- aOutput.append("<a href=\"" + pURLField->GetURL().toUtf8() + "\">");
+ aOutput.append("<a href=\"" + HTMLOutFuncs::ConvertStringToHTML(pURLField->GetURL()) + "\">");
aOutput.append(HTMLOutFuncs::ConvertStringToHTML(aRTFStr));