in reply to form parsing, hex, HTML formatting
W/r/t the second question--yes, that looks like it's causing the spaces instead of carriage returns. \x20 is a space character (\x20 = hex 20, so space in ASCII).
You could change that to:
Try that and see if it works for you.$sub_body =~ s/\n/<br>/g;
|
|---|