We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1726e66 commit 03a6987Copy full SHA for 03a6987
1 file changed
src/pages/home/report/comment/TextCommentFragment.tsx
@@ -73,9 +73,7 @@ function TextCommentFragment({fragment, styleAsDeleted, reportActionID, styleAsM
73
const containsEmojis = CONST.REGEX.ALL_EMOJIS.test(text ?? '');
74
if (!shouldRenderAsText(html, text ?? '') && !(containsOnlyEmojis && styleAsDeleted)) {
75
const editedTag = fragment?.isEdited ? `<edited ${styleAsDeleted ? 'deleted' : ''}></edited>` : '';
76
- // We don't want to replace the space in tags with
77
- const escapedHtml = html.replace(/(?:(?![\n\r])\s)(?![^<]*>)/g, ' ');
78
- const htmlWithDeletedTag = styleAsDeleted ? `<del>${escapedHtml}</del>` : escapedHtml;
+ const htmlWithDeletedTag = styleAsDeleted ? `<del>${html}</del>` : html;
79
80
let htmlContent = htmlWithDeletedTag;
81
if (containsOnlyEmojis) {
0 commit comments