func htmlString()

in Sources/CollectionsBenchmark/Charts/Graphics/Graphics+SVG.swift [78:97]


  func htmlString() -> String {
    var xml = _XMLRenderer(docType: "html")
    xml.element(name: "html") { xml in
      xml.element(name: "head") { xml in
        xml.emptyElement(
          name: "meta",
          attributes: [
            "http-equiv": "content-type",
            "content": "text/html; charset=utf-8",
          ])
        xml.element(name: "title", context: .text) { xml in
          xml.text("Benchmark results")
        }
      }
      xml.element(name: "body") { xml in
        _renderSVG(into: &xml)
      }
    }
    return xml.render()
  }