There is a problem with saving the format in TextArea of HTML. /n cannot be converted to each other, so the page cannot be displayed in the format at the beginning, so the following is the specific solution. The format of textarea can be saved to the database when saving, but when displaying, because /n and cannot be converted to each other, the page cannot be displayed in the format at the beginning, so when the page is displayed, a layer must be nested outside the value.
tag, that is,
code is as follows:
< pre >${model.name} pre >
For more detailed explanations on how to solve the problem of saving format in HTML's TextArea, please pay attention to the PHP Chinese website for related articles !