Tom Nowell has a really neat tool, that let’s you input something, and see what the output would be, having been run through every one of WordPress’s escaping and sanitizing functions. I seriously love this little tool.
Confused about it? Just paste in a sentence with some HTML for a link, and you’ll see.