Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

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 · 619 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 MarkP, 7 days ago
3 123 3 days ago
Themes & Styling · by TomW, 6 days ago
0 65 6 days ago
Themes & Styling · by themetman, 2 weeks ago
1 159 2 weeks ago
Themes & Styling · by AH, 4 weeks ago
1 274 2 weeks ago
Themes & Styling · by Bruno, 4 years ago
6 1461 2 weeks ago