make the input_content legal