We do validate the quotes (kinda), and attach a .quote-modified class to any which have been amended. Let’s see if it figures out the nested quotes:
Hmmm, no it doesn’t. I guess ‘technically’ that content is still part of @ryanerwin’s post. Quite tricky to resolve though. As @zogstrip already said the best way is to try and get your users to quote the original post.
They do quote correctly most of the time. For casual users, nested quotes can be pretty complicated… The “Quote whole post” button is very rarely used for us.
It’s just the real example that came up today, where an innocent but not extremely sophisticated user was just trying to make a quote, and the quote appeared as though it was from a different user…
That’s why I posted it here.
Mods can of course manually edit the post to fix it. And this can’t come up too terribly often. Just a thought to avoid an awkward situation that comes up occasionally
기억이 맞다면, 비슷한 문제(발췌문에서 중첩된 태그를 매칭하는 JavaScript 문제)를 조사해 본 적이 있었는데, 후행 탐색(look-behind) 정규 표현식이 필요해서 막혀 있었습니다. 하지만 저보다 정규 표현식에 능한 누군가가 허용 가능한 해결책을 찾아낼 수 있다면 놀라지 않을 것입니다.