Output control for {search_term_filter:quer34}

Hi bricks team,

As you know, the output of {search_term filter:quer34} is placed inside a span tag. But is there a way to get the output out of the span tag?

I will try to explain the reason for this requirement… As per the screenshot below, I have created an ajax search using search filter + Loop query. At the end of the search results section, there is a view all button that redirects the user to the search results page (according to the searched term). Therefore, we have to create the button link dynamically.

like this : {site_url}/?s={search_term_filter:eukvt}

But considering that {search_term filter:quer34} is created inside a span tag, it prevents this link from working. Is there a better way to create this dynamic link than I think?