new features added:
changed lines 61-66 to have alternative syntax
added htmlspeacialchars conversion and strip_tag to code