Adding link in block description

[ad_1]

Hi,

I still haven’t learned JavaScript (and React) deeply..

I would like to add a simple link to my block description, such as <a href="https://projectdmc.org/support/topic/adding-link-in-block-description/url">link text</a>
The setup of my block is:

registerBlockType('plugin/plugin-block', {
	title: 'Block Title',
	description: 'Description of my block',
	category: 'widgets',
	// etc

})

When adding the link to the description, the link is returned as HTML in the editor.

So how can I output the link properly?

Guido

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer