Add the html statement directly to js, and js will parse the html string into the corresponding HTML statement and display it on the front end.
var el = document.createElement( 'div' );
el.innerHTML = "titleTest< ;a href='test0'>test01test02test03< ;/html>";
el.getElementsByTagName( 'a' ); // Live NodeList of your anchor elements
Apply in jquery:
var el = $( '
' ) ;
el.html("
titleTesttest01 test02test03");
$('a ', el) // All the anchor elements