github.com/MontFerret/ferret@v0.18.0/e2e/tests/static/element/inner_text/set.fql (about)

     1  LET url = @lab.cdn.static + '/simple.html'
     2  LET doc = DOCUMENT(url)
     3  LET el = ELEMENT(doc, "body")
     4  
     5  LET expected = `Injected by Ferret`
     6  
     7  INNER_TEXT_SET(el, expected)
     8  
     9  LET actual = INNER_TEXT(el)
    10  
    11  LET r1 = '(\s|\")'
    12  LET r2 = '(\n|\s|\")'
    13  
    14  T::EQ(REGEX_REPLACE(TRIM(actual), r2, ''), REGEX_REPLACE(expected, r1, ''))
    15  
    16  RETURN NONE