Based on https://bz.apache.org/ooo/show_bug.cgi?id=80657 ...that was implemented for AOO 4.1.14. Repro in LO as of 7.4.5 in Writer and in Calc.
Damjan Jovanovic committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/28341f0b107b7bcd1377cec68c90eee9c4f27e1c tdf#154273: Add the "'" entity definition to our HTML parser... It will be available in 7.6.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Damjan Jovanovic committed a patch related to this issue. It has been pushed to "libreoffice-7-5": https://git.libreoffice.org/core/commit/1b9042f763a439c5aa0f1088ac86cfc203ccc3b2 tdf#154273: Add the "'" entity definition to our HTML parser... It will be available in 7.5.3. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Xisco Fauli committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/92b732ce29f734d91fb6c9350b9a8b6df7f9293e tdf#154273: sw_htmlimport: Add unittest It will be available in 7.6.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
*** Bug 156870 has been marked as a duplicate of this bug. ***