Sanitising content before render
I wanted a simple way to sanitise some of the content before it was rendered in Ruby on Rails, when viewing a post with an image in Scribbles. The problem was that any type of attachment in Rails always brings through the following markup on the front-end: <action-text-attachment sgid="123" some_other_data></action-text-attachment>The problem with that is that it exposed the original file that I'm storing — potentially exposing location data if it's an image with GPS meta data. Right now I found no good way to strip just the GPS the meta data from an attachment without also destroying the colour space,...