Update src/htmlhandling.c

Failsafe and details added.