How to add some tags in output?

I want to allow some HTML tags (e.g. <figure>, <figcaption>) in longtext output.

I've tried to play with htmlaweb plugin and ElggAutoP class but not success.

I've tried to use TinyMCE and CKeditor WYSIWIG plugins also. No results.

My source code:

<figure class="image">

<img src="http://localhost/elgg/file/" />
<figcaption>Caption</figcaption>
</figure>

and this my output:

<img src="http://localhost/elgg/file/">
Caption

after saving of text.

What do I need to do?

Thanks.

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking