Escaping output with only specific allowed HTML elements
Sometimes when developing for WordPress, you will want to echo something. As all good developers know, any such content must be escaped. This makes sure that nothing nasty can be echoed and keeps you code more secure.
WordPress comes with a number of escaping functions, however sometimes they don't quite do as you want. Take this example.