Skip to content

A Craft filter that will filter out specific HTML tags

Notifications You must be signed in to change notification settings

Staplegun-US/craft-tag-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Craft Tag Filter

This plugin will filter out certain HTML tags from a block of text and return their values in a twig array:

{% for paragraph in entry.body | getTag('p') %}
  {{ paragraph }}
{% endfor %}

Currently ignores any tag meta data such as classes or IDs, and will return only the value inside the tags.

About

A Craft filter that will filter out specific HTML tags

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages