I have this code where I am trying to find number of elements in a string using jquery,
var s = 'assasdsa<img src="http://localhost/cc/public/img/smileys/flushed face.png">sdsdajjk';
var k = $(s).find('*');
console.log(k.length);
It gives an error though,
jquery-3.5.1.min.js:2 Uncaught Error: Syntax error, unrecognized expression: assasdsa<img src="http://localhost/cc/public/img/smileys/flushed face.png">sdsdajjk