sub process_html {
...
...
}
Post that section and we should be ready to solve the problem.
I imagine this should work, but it will be wise to look at the function to be sure:
$comments = process_html($inputs{comments}, $line_breaks, $allow_html);
$comments = process_html($comments, $line_breaks, $allow_html);
Basically, running your iunput through the processing function a second time.