It might be
Bug 2043430 Comment 1 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
It might be breaking on UTF-16 high/low surrogate pairs, as JS encodes strings as UTF-16: https://gregtatum.com/writing/2021/encoding-text-utf-32-utf-16-unicode/#Code-units-code-points-and-high-and-low-surrogates