How to make custom blocks print unsanitized markup
TWO solutions:

1.-in text formats, disable WYSYWIG in full-html format, you are looking HTML tags because of this.

2.-write your code in plain-text format, select 'plain-text' write code, when done, do choose full-html and save your block.

in other words, do not write code inside WYSYWIG.