<?php Function escape($string) { return htmlentities($string, ENT_QUOTES, 'UTF-8'); } ?>
info at phpclasses dot org