Display wordpress blogroll with html interpretation in description

I’m willing to use the blogroll capability of wordpress to display a list of partners on my site. I want to know how can I use the field Description in the link page of wordpress to accept html tags like <a>, <p> etc?

I can display the description, but it don’t interpretate the tags. For example, if I put in the description

Read More
This is the description of our partner. His <a href="www.bla.com">Website</a> is cool

then I’ll get the same text as plain text on the site, without link!

How can I make it?

Related posts

Leave a Reply

1 comment

  1. Relevant core ticket regarding the future removal of Links from the core and conversion into a plugin.


    To enable HTML tags in the Description field (and in the Notes field), use the following code:

    // Disable the removal of HTML tags
    remove_filter( 'pre_link_description', 'wp_filter_kses' );
    remove_filter( 'pre_link_notes', 'wp_filter_kses' );
    
    // Enable HTML tags the same way as in posts content
    add_filter( 'pre_link_description', 'wp_filter_post_kses' );
    add_filter( 'pre_link_notes', 'wp_filter_post_kses' );