SafeYAML provides an alternative implementation of YAML.load suitable for accepting user input in Ruby applications.

WWW: https://github.com/dtao/safe_yaml
