News for hackers. Stuff that matters.
Re:Genetic Algorithm building a little car by bd on Monday December 08, 2008 @06:26PM (#390580)
It's possible to get around using escape sequences.

In Python:

  import urllib
  print urllib.quote("en.wikipedia.org/wiki/Smart_(automobile)")
It looks ugly, but it makes links clickable:

http://en.wikipedia.org/wiki/Smart_%28automobile%29

Re:Genetic Algorithm building a little car by ivankirigin on Monday December 08, 2008 @08:08PM (#390723)
The href can be that ugly link while the parens are still visible. The issue is when to parse the parens as part of the link.

Edit: but I guess you're saying I could do this to make it clickable. No thanks.

Re:Genetic Algorithm building a little car by bd on Monday December 08, 2008 @08:40PM (#390754)
Yup, that's what I ment. This is what I do when posting Wikipedia urls with parens here.

For parsing parens problem, heuristics proposed by lacker seems reasonable.

Anyway, I guess like 99% of broken parens cases here would be Wikipedia links, which are quite well defined (except for pages for emoticons and parens symbols themselves).