loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix: Abnormal strings appear when comments are saved after editing (#29991)

Partially resolved(The second problem):
[#29986](https://github.com/go-gitea/gitea/issues/29986)

**Before**
HTML strings appear when comments are saved after editing

![image](https://github.com/go-gitea/gitea/assets/37935145/c356d99a-8473-4cc5-8e38-1b207ccd8b12)

**After**

https://github.com/go-gitea/gitea/assets/37935145/525601f9-3ee1-4266-9105-36d82b91b1c8
(cherry picked from commit bf34723491dcbb45dee7888c574e295cae6096be)

authored by

HEREYUA and committed by
Earl Warren
9cf4ab03 d4ea1c25

+1 -1
+1 -1
web_src/js/features/repo-legacy.js
··· 436 436 const $content = $segment; 437 437 if (!$content.find('.dropzone-attachments').length) { 438 438 if (data.attachments !== '') { 439 - $content[0].append(data.attachments); 439 + $content[0].insertAdjacentHTML('beforeend', data.attachments); 440 440 } 441 441 } else if (data.attachments === '') { 442 442 $content.find('.dropzone-attachments').remove();