Home  >  Article  >  Web Front-end  >  How to save format in HTML TextArea

How to save format in HTML TextArea

php中世界最好的语言
php中世界最好的语言Original
2018-02-07 09:35:553840browse

This time I will show you how to save the format of HTML's TextArea. What are the precautions for saving the format of HTML's TextArea? The following is a practical case, let's take a look.

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 according to the format at the beginning, so when the page is displayed, A layer of

tags should be nested outside the value, that is,

< pre >${model.name}</ pre >

I believe you have mastered the method after reading these cases. For more exciting information, please pay attention to the php Chinese website

Othersrelated articles!

Related reading:

What is the difference between html, xhtml and xml

How to modify the default submission method of form

How to use base64 encoding for html pictures instead

How to realize the size of mobile adaptive web pages

The above is the detailed content of How to save format in HTML TextArea. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn