Built-in Methods to Encode/Decode HTML?

You can do it with URI

name = "Ruby Programming Language" url = "Example Domain; + URI.escape(name) puts url # Example Domain