How to turn off curly quotes in iOS 11

If you write any sort of code or markup in iOS 11, constantly getting curly quotes out of your keyboard will drive you crazy.

The feature is called Smart Punctuation and here is how to turn it off:

Go to Settings > General > Keyboard. Toggle off Smart Punctuation.