ttscoff/Slogger — pull request #57 by McPolemic (2012-10-05 05:39:39+00:00)
Title: Escape brackets/parentheses in LastFM song titles

Currently, lastfmlogger.rb puts out incorrect Markdown links if the artist or song name has a parenthesis in it.

Example entry:
* [Zveri (Звери) – Rayonykvartaly (РайоныКварталы)](http://www.last.fm/music/Zveri+(%D0%97%D0%B2%D0%B5%D1%80%D0%B8)/_/Rayonykvartaly+(%D0%A0%D0%B0%D0%B9%D0%BE%D0%BD%D1%8B%D0%9A%D0%B2%D0%B0%D1%80%D1%82%D0%B0%D0%BB%D1%8B))

Fixed entry:
* [Zveri \(Звери\) – Rayonykvartaly \(РайоныКварталы\)](http://www.last.fm/music/Zveri+\(%D0%97%D0%B2%D0%B5%D1%80%D0%B8\)/_/Rayonykvartaly+\(%D0%A0%D0%B0%D0%B9%D0%BE%D0%BD%D1%8B%D0%9A%D0%B2%D0%B0%D1%80%D1%82%D0%B0%D0%BB%D1%8B\))

I added String:e_link() to escape brackets and parentheses, in case this needed to be done in other plugins. I modified lastfmlogger.rb to create String's for song title and link and escape them properly.