What is the most reasonable approach?
- jQuery’s
.html()
with previously encoded text - Query’s
.text()
innerHTML
with previously encoded textinnerText
/textContent
document.createTextNode
once per elementdocument.createTextNode
once per test run
What is the most reasonable approach?
.html()
with previously encoded text.text()
innerHTML
with previously encoded textinnerText
/ textContent
document.createTextNode
once per elementdocument.createTextNode
once per test run