- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
(deleted by user because of formatting error)
Admin
Admin
Admin
You develop in VB, too?
Admin
Admin
Admin
Thanks for pointing that out. :)
Admin
If I hadn't got such a document last wednesday containing untransformed >, I would not have known either. It happened that I just checked the w3c site on that day.
Admin
while(true) way to go!
well but cleaning html is really a bitch unless you do document.firstChild.innerText()
Admin
Perhaps it uses to describe some undo operation.
Admin
Perhaps it uses to describe some undo operation.
Admin
Admin
Admin
Hmm. Let me guess that we found this gem of code when it there were either complaints about performance on the servers or it hit an infinite loop.
"\s*" or set the ignore whitespace flag ftw... but there are so many other problems. with everything. Programming isn't like doodling notes in you notebook.
Admin
So basically there's 5 tags they want to remove and 5 attributes types. And they don't want white space created by div or P tags. Wow, these programmers are soo stupid. They left out thousands of combinations. There could easily be another 10,000+ lines of code for this.
Admin
lol
Admin
The center cannot hold!
http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags