When creating, say, a blog feed that uses a certain truncated length of the blog content you have to use the "strip_html" filter. This works for the most part, but it gets rid of any and all formatting (paragraphs etc). Is there a filter which closes the tags rather than strips all of the html?
Official response from NationBuilder Support
Will, that's a good question.
I am not aware of a filter that does this. You can, however, use the 'escape' filter to escape a string, and you can use the filter 'append' to add in the closing html tags you require. You could also use the 'remove' filter to take out items from the output. You can find a list of filters here.
Share this post
Showing 2 reactions
Sign in with