title: Use Fuzi to grab text from a particular tag using swift
body: <p>I currently have an html file that I need certain text from, and I installed Fuzi to help me parse the html.  The part of the html file I need to grab the text from looks like this:</p>
  
  <pre><code>&lt;pre class="lyric-body" onclick="location.href='SOME_URL_HERE';"&gt;
  THE TEXT THAT I NEED TO GET IS IN HERE
  &lt;/pre&gt;
  </code></pre>
  
  <p>And what I have set up to start parsing the HTML:</p>
  
  <pre><code>if let myString = String(data: data!, encoding: usedEncoding) {
    do {
          let doc = try HTMLDocument(string: HTML_FILE, encoding: NSUTF8StringEncoding)
  
          for lyric in doc.xpath("//pre/@class") {
                print(lyric)
          }
  
     } catch let error {
         print(error)
     }
  } else {
       print("failed to decode data")
  }
  </code></pre>
  
  <p>This currently prints:</p>
  
  <pre><code>class="lyric-body"
  </code></pre>
  
  <p>I have tried reading the Fuzi documentation, but nothing that I seem to try returns anything similar to the text I need.</p>