"."/> ".">
Mysql text value implementation method: first use the "htmlspecialchars(content);" method to convert the content into html tags; then use "nl2br(htmlspecialchars(content));" to convert the newline into "
" is all.
Recommended: "mysql video tutorial"
Read the value of the mysql database text (text) field
Method 1:
The content system needs to be converted when typing
htmlspecialchars(内容);//转化为html标签 nl2br(htmlspecialchars(内容));//换行转换为<br/>
Method 2:
You can use the online editor fck or kineditor when typing, you can do it by yourself Search it on Baidu
The above is the detailed content of How to get the value of mysql text. For more information, please follow other related articles on the PHP Chinese website!