oalders / html-restrict

HTML::Restrict - Strip away unwanted HTML tags
Other
10 stars 9 forks source link

add code filters for attribute values #27

Closed haarg closed 6 years ago

haarg commented 6 years ago

Similar to replace_img, but more granular. This allows munging subrefs to be used for attribute filters, similar to the regex filters. However, the subref filters can munge the attribute content. An undef return value means to remove the attribute.

I can write up docs if this interface is approved.

oalders commented 6 years ago

Sorry, I didn't see that final commit until just now. Thanks!