Custom block created with GUI stripping some  tags, not all of them
There was a similar question recently and the problem was CKEditor, could be the same here.

If you want to be sure that your markup is not altered in any way, create a text format without ckeditor and use that.