@Chris I kind of see the potential for accumulating SMEs and creating collaborative curation efforts -- but this is not currently a venture of Collectives and I am struggling to see the benefit of Collective Articles in general.
@M-- I know this is a bit late and you've probably already seen it, but other users also reported not being able to login over the weekend (Solution seems to be clearing cache for SE/SO in browser)
@Vega while the answers are opinionated, I don't think that's the question's fault; it seems exemplary in seeking to understand the practical differences
is this question off-topic-facepalm or a teachable moment? The accepted answer hasn't been upvoted since the question was asked back in 2011. I don't reckon there's much teaching happening. stackoverflow.com/q/7558314/2943403
Is this page worth saving? It is Unclear because it has no mcve, but the answers are both wrong because with the anchors ^ and $, there is no opportunity to make separate replacements of blacklisted characters. stackoverflow.com/q/2392892/2943403 It's unsalvagably bad, right?
...Geez, these badly titled pages are notoriously full of bad content. I feel like I should be wearing gloves.
@dbc It's not even valid code. But even then it's not trying to do anything related to the paste protection. It tries to create and attach an ifrrame to the document also save something to local storage. It's all broken, so it's not even clear if it's malicious or just a random mish-mash of stuff.
@mickmackusa It's not off-topic. It's fine as it is.
@mickmackusa This question was unclear and your edit invalidated the answers. Judging by the accepted answer OP wanted something different.
I changed the title to reflect what I believe they wanted. Since they accepted the answer, we can assume that's what they wanted and we don't need to close the question.
Staging ground isn't meant to produce good questions, but rather adequate ones. This one looks like a reasonable question. Probably not a very useful one, but good enough to graduate from SG.
@Dharman I disagree. Why would it make any sense to only sanitize the input string (to be a completely empty string) if the entire string was non-alphanumeric? The much more common task is to remove one or more unwanted characters so that the full string only contains the good stuff. At the very least, it is unclear.