I'm using vapor framework and created a table with longText type in mysql & store text with html tags in it,
+----+----------------------+
| id | content |
+----+----------------------+
| 1 | <b>title</b>sometext |
+----+----------------------+
now when i show them in leaf, it's shows with html tags like:
<b>title</b>sometext
My Leaf file: but i want to show like:
title sometext
how can i do this? thanks
Try something like
<pre class="item-body-text-pre">#raw(post.content)</pre>
You can use #raw(<yourVariableHere>)
to insert unescaped text.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.