I have this code below, which comes from Wordpress Core file /wp-admin/includes/class-wp-posts-list-table.php
printf( '<a class="row-title" href="%s" aria-label="%s">%s%s</a>', get_edit_post_link( $post->ID ), /* translators: %s: post title */ esc_attr( sprintf( __( '“%s” (Edit)' ), $title )), $pad, $title );
In my case the variable $title contains iconfont HTML i.e.
<i class="fa fa-heart"></i>
The PHP code is making the web browser display the HTML characters as a string rather than what I'm after which is to display as HTML and render the Font Awesome Icon.
Ive tried wrapping $title in
htmlentities() html_entity_decode() htmlspecialchars()
Can some one help thanx