github.com/MontFerret/ferret@v0.18.0/e2e/tests/static/doc/inner_html/get.fql (about)

     1  LET url = @lab.cdn.static + '/simple.html'
     2  LET doc = DOCUMENT(url)
     3  
     4  LET expected = `<!DOCTYPE html>
     5  <html lang="en">
     6  <head>
     7      <meta charset="UTF-8"/>
     8      <title>Title</title>
     9  </head>
    10  <body>
    11      <h1>Hello world</h1>
    12  </body>
    13  </html>`
    14  LET actual = INNER_HTML(doc)
    15  
    16  LET r1 = '(\s|\")'
    17  LET r2 = '(\n|\s|\")'
    18  
    19  RETURN T::EQ(REGEX_REPLACE(TRIM(actual), r2, ''), REGEX_REPLACE(expected, r1, ''))