title: How to escape special characters in swagger schema example values?
body: <p>In swagger (3.0) definition YAML, if I have a schema with a string property
  and add a custom example value, special characters like <code>&lt;</code>, <code>&gt;</code>, and <code>&amp;</code> appear "wrong" when browsed, e.g. <code>&lt;</code> becomes <code>&amp;lt;</code>.</p>
  
  <p>I tried to use <code>\x3c</code> instead of <code>&lt;</code>, or use <code>!!str</code> prefix, but doesn't help.</p>
  
  <p>In this case the response is "application/xml", so that is may be a problem, however in the name of a property the less-then sign appears perfectly (see below).</p>
  
  <p>Some special characters works fine, like <code>&amp;</code>.</p>
  
  <pre><code>info:
    title: poc
  servers:
  - url: /poc/api
    variables: {}
  paths:
    /ex2:
      get:
        tags:
        - example
        summary: debugging schema with example value contains &lt; or &gt;
        description:
        operationId: example
        responses:
          200:
            description: 
            content:
              application/xml;charset=UTF-8:
                schema:
                  $ref: '#/components/schemas/Wrapper'
  components:
    schemas:
      Entry:
        type: object   
        properties:
          name:
             type: string
          value:
             type: number
      Wrapper:
        type: object   
        properties:
          entry:
             type: object
             $ref: '#/components/schemas/Entry'
          customfield:
             type: string
             example: "&lt;hello\x3c"
          custom&lt;&gt;field:
             type: string
             example: "why"
  </code></pre>