Properly escape IDs in getSelector()
to handle weird IDs
#35566
Merged
getSelector()
to handle weird IDs
#35566