Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Problem with file.html()|raw (how not to have a paragraph <p> ?)

Solved by Karmalakas View solution

Started by byache 3 years ago · 1 replies · 526 views
3 years ago

In a twig file, I use {{file.html()|raw}} and I obtain something like <p alt="">mytext</p>.
Is it possible to obtain only the text mytext ?

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by FrViPofm, 4 weeks ago
4 479 3 weeks ago
Themes & Styling · by johan thomas, 5 years ago
1 805 3 weeks ago
Themes & Styling · by stuart young, 2 months ago
3 664 2 months ago
Themes & Styling · by Sebadamus, 3 months ago
5 684 2 months ago
Themes & Styling · by martynfoster735, 3 months ago
1 645 3 months ago