当前位置:网站首页>On the translation of rich text storage database format

On the translation of rich text storage database format

2022-06-11 18:55:00 It's the flower cat in Nanxiang

All kinds of rich text will be converted into... When stored in the database String Format
for example :
 Insert picture description here
The above is stored in the database
The following is the front display
 Insert picture description here
We see the format of the article
Here's the solution

    <script type="text/javascript">
        $(function() {
    
        $("#content2").html($("#content1").text());
        });
    </script>

```python
<div id = "content1"  hidden="hidden">
            {
    {
     query.message }}
        </div>
        <div id = "content2" class="div3">
        </div>

See the effect
 Insert picture description here

原网站

版权声明
本文为[It's the flower cat in Nanxiang]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/162/202206111853109121.html