当前位置: 动力学知识库 > 问答 > 编程问答 >

grav - Twig: attribute from html element filter/function

问题描述:

I am using the grav flatfile cms, and i have a twig variable that outputs something like:

<img src="example.com/path/to/image.jpg">

Is there a twig filter that can give me just the URL for the image (the contents of the src attribute)? or is there some regex filter that could help me?

分享给朋友:
您可能感兴趣的文章:
随机阅读: