editeng/source/editeng/impedit4.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 73ba9a65834455cba992f1661222f881649af448 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Fri Oct 4 12:51:32 2024 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Sat Oct 5 22:27:08 2024 +0200 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.mcnam...@collabora.com> 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));