get wpautop to not wrap tags but only text

Is it possible for wpautop to only wrap plain text, so that e.g. here:

text

<a href="">link</a>

only the “text” gets wrapped. Why would you want to wrap tags anyway? Maybe anyone has a custom function?

Related posts