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

How to save format in HTML TextArea

php中世界最好的语言
Release: 2018-02-07 09:35:55
Original
3866 people have browsed it

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 >
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template