I am getting Dom text reinterpeted as HTML when trying to use (this) in JS script
I have a function
function test(item) {
let newText = $(item).val()
}
$(".test").each(function(){
//...somelogic
test(this);
}
Now i get the warning at let newText = $(item).val()
how can we get rid of this warning
1