     private var insideFootnote: Int
     private var stack: [String]
     private var result: [String]
+    private var parser: XMLParser?
     
     init(html: String, startVerse: Int, endVerse: Int) {
         self.html = html.replacingOccurrences(of: "&nbsp;", with: "&#160;")

    
    func parseVerses() -> String {
        if let data = self.html.data(using: .utf8) {
            let parser = XMLParser(data: data)
            parser.delegate = self
            parser.shouldProcessNamespaces = false
            let ok = parser.parse()
            print("SS VerseParser DONE \(ok)")
        }
        return result.joined().trimmingCharacters(in: .whitespacesAndNewlines)

        if elementName == "span" {
            if let id:String = attributeDict["id"] {
                let parts = id.split(separator: ":")
                if let verse = (parts.count > 2) ? Int(parts[2].split(separator: "-")[0]) : nil {
                    if !self.insideVerses && verse == self.startVerse {
                        self.insideVerses = true
                    }
                    if self.insideVerses && verse >= self.endVerse {
                        self.parser!.abortParsing()
                    }
                }
            }
