Fix page saving using html instead of raw input