Skip to content
Grav 2.1 is out: every page speaks Markdown. 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 · 477 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, 13 hours ago
1 25 36 minutes ago
Themes & Styling · by stuart young, 1 month ago
3 480 1 month ago
Themes & Styling · by Sebadamus, 2 months ago
5 481 2 months ago
Themes & Styling · by martynfoster735, 2 months ago
1 460 2 months ago
Themes & Styling · by Justin Young, 2 months ago
1 490 2 months ago