How can I filter out unnecessary code by using smarty? I just want to extract a piece of plain text and limit the number of words. how can I write it?
This is my code
{$ Val [message] | strip_tags}
It seems that strip_tags does not work (in the dz3 template)
Below is the read content
[Font =] it was said that when I went out for dinner and went home last night, I was riding my human donkey on the road and suddenly looked up. it was a magical sight, and there was a snow-capped snow mountain in the east out of thin air! [/Font][Font =] I remember the last time I saw this scene in the primary school era before [/font] N [font = ]. at that time, riding a car with my mom [/font]
[Font =] as you go east, the sky on the south is a huge cloud, and the edge of the cloud is as rolling as the top of the mountains, the color of the cloud is light and deep, as if the Stone Hill is covered with a layer of snow, like a huge snow mountain, with a clear hierarchy, coupled with the ING of the sunset, the sun is more brilliant, but unfortunately, at that time, Wood had devices capable of photography and could not record the beautiful moments. [/Font]
[Font =] Finally, I was told to see the spectacular scenery, but this time I changed the direction and it was a lot closer. However, this time the cloud was not as layered as it was a long time ago, but it seems a lot of haze, as if there is something in front of the sun, no matter what, such clouds are really rare. [/Font]
[Align = left] [font =] [attach] 26573 [/attach] [/font] [/align] [align = left] [font =] [attach] 26575 [/attach]
Reply to discussion (solution)
First ?? Html, and then use strip_tags ();?? Html drop
? In [font = ]? Some of you ?? Yes? Method? Html.
In dz | strip_tags does not parse at all
Is there a way to filter using the main book?
This has little to do with your code.
Inside smarty
Html and interception should be removed from the php source code generated for this stuff.
I don't know about DZ. I haven't studied it.
Strip_tags will not work for your UBB code
{$ Content}
Thank you.