According to the YAML spec, neither the :
nor the -
should be a problem. :
is only a key separator with a space after it, and -
is only an array indicator at the start of a line with a space after it.
But if your YAML implementation has a problem with it, you potentially have lots of options:
- url: 'http://www.example-site.com/'
- url: "http://www.example-site.com/"
- url:
http://www.example-site.com/
- url: >-
http://www.example-site.com/
- url: |-
http://www.example-site.com/
There is explicitly no form of escaping possible in "plain style", however.