fixed handling of < and > when they are not used for html tag