Created by: Dattaya
HTML4 spec lets to use 'dot' and 'colon' - http://www.w3.org/TR/html4/types.html#type-name, HTML5 - any character - http://www.w3.org/TR/html5/global-attributes.html#the-id-attribute.
This solution isn't perfect, still some characters prevent jQuery from selecting an element from the dom tree. If you want I can add tests.