_filter_html_escape($text)
Escapes all HTML tags, so they will be visible instead of being effective.
modules/filter/filter.module, line 1438
<?php function _filter_html_escape($text) { return trim(check_plain($text)); } ?>
Some quick links to get you started