This is more of a feature than an issue with the MySQLi implementation. It has built in Cross Site Scripting protection. However you can disable it easily to allow you to display html from the database. To make the change just update code references like:
The extra 'false', argument tells it to disable the Cross Site Scripting protection and display any html.