I would suggest either rinsing it in a bathroom somewhere, and/or carrying some sort of pouch or container you can stick it in so you don't dirty your pocket. Then you could clean it at home. In a pinch you could probably pour water from your water bottle on/through it outside if you carry a water bottle already.
Could also wrap it in a handkerchief if you carry anything like that.