I've just started code according to VIP WordPress Coding Standards and I stuck with sanitization. I know that all outputs need sanitization without any exception. But how can I do sanitization of a function which has HTML code output itself? Eg. function yoast_breadcrumb() from Yoast's WordPress SEO plugin which outputs HTML formatted breadcumb..?
<?php echo yoast_breadcrumb( '', '', false ); ?>
Output:
<span prefix="v: http://rdf.data-vocabulary.org/#"><span typeof="v:Breadcrumb"><a href="https://rnc-wordpress-wrongware.c9.io" rel="v:url" property="v:title">Main Page</a></span> › <span typeof="v:Breadcrumb"><span class="breadcrumb_last" property="v:title">Page doesn't exist</span></span></span>
yoast_breadcrumb()
is already sanitizing by itself.wp_kses()
for sanitizing HTML.