We are using ?php
- echo trans($row_rs['content']); ?>
-
You can apply different functions to escape PHP code as needed
- Supplement One point, if you display a section of the article in span and use substr to get a fixed-length string, remember to add an extra space after the span parameter, otherwise the html code will be messed up when half a Chinese character is cut off.
http://www.bkjia.com/PHPjc/446203.htmlwww.bkjia.com
true
http: //www.bkjia.com/PHPjc/446203.html
TechArticle
We are using ?php echotrans($row_rs['content']); ? You can apply different ones according to your needs The function performs PHP code escaping. If you want to display a section of the article in span, use...