You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.
I may be misunderstanding how this works, but I can't get Hacksaw to strip out HTML. The docs suggest that it'll remove everything except P tags, but the following:
Actually I'm happy for p tags to remain – it's the strong and link ones that I assumed would get stripped out, but don't. I can of course work around with twig's strip_tags filter, but thought I'd post here in case it's a bug...
Admittedly, it's been a while since I've looked at the code, but after review, I can confirm this is by design. The reason I initially added the hack by p was for a blog index view. My thought was that you'd still want all other tags in there. I will update the read me to indicate this is the case.
I will also go in and add a remove param for when you want to get rid of a specific element when hacking by p.
I may be misunderstanding how this works, but I can't get Hacksaw to strip out HTML. The docs suggest that it'll remove everything except P tags, but the following:
leaves the strong and a tags untouched. Am I missing something obvious? I'm on Craft 2.6.2987, Hacksaw 2.0.1.
The text was updated successfully, but these errors were encountered: