How do you put HTML or XML into a YAML?

Viewed 31701

I would like to store HTML snippets inside a YAML file. What is the best way to do that?

Something like:

myhtml: |
  <div>
    <a href="#">whatever</a>
  </div>
2 Answers
Related