There is a variable that contains a trace. text:
<a href="/some_link" some-tags="">Some text</a> i.e. echo $text displays <a href="/some_link" some-tags="">Some text</a>
It can also contain more text, for example:
<a href="/some_link" some-tags="">Some text</a> <a href="/some_link_2" some-tags="">Some text 2</a> It is necessary to wrap the text inside these links in <span> using PHP to make it
<a href="/some_link" some-tags=""><span>Some text</span></a> etc.