$ cat some-vendor-nonsense.txt
product id: 5
price: 3.14
product id: 6
price: 6.66
$ sed "s/^/ /; s/^ product/- product/" < some-vendor-nonsense.txt \
| gojq --yaml-input . "<option value=\"/examples/\(.)/\">\(.)</option>"I also want to draw the reader's attention to the magic of |@uri <https://github.com/jqlang/jq/blob/jq-1.7/docs/content/manual...> for a bunch of cases, but doubly so in TFA's case where they're plugging strings into a URI context. Simple string concat often works great for "hello world", but the world is not always just hello, so one quick use of the filter and jq's got your back
echo "the world's scary" | jq -Rr '"<option value=\"/examples/\(.|@uri)\">\(.)</value>"'There is still a quite good bootstrap customizer at bootstrap.build btw ;)