Ok. That was an eye-opener! CGI is not the one to blame, if I enter < it stores it like that. When I then re-edit the file, it shows a < character.
Good. You tell me to escape the HTML text. So I tried (naive me!) quotemeta() but that messes things up.
Alright, I'll be finding a nice HTML::(somewhat) module.
Thanks for pointing me in this direction!
Comment on Re^2: CGI module seems to eat html entities!