Skip to content
Grav 2.0 is officially stable. Read the announcement →
Themes & Styling

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 · 388 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 Justin Young, 2 weeks ago
1 165 2 weeks ago
Themes & Styling · by Slebeig, 1 month ago
4 288 1 month ago
Themes & Styling · by Pedro M, 3 months ago
4 615 3 months ago
Themes & Styling · by Ian, 3 months ago
3 320 3 months ago
Themes & Styling · by Norbert, 2 years ago
11 746 4 months ago