Reply was added on the same wikitext line as an HTML comment in this edit: https://ar.wikipedia.org/?diff=50689795
That diff is particularly difficult to make sense of due to mixed LTR and RTL text, so here's a simpler test case:
This might be caused by the fix for T257651: Reply tool messes up replying to users with signatures followed by html comments.