When stripping html there is no option to preserve certain tags. There was a similar issue in the D7 version just change the "trim_preserve_tags" config key in your config to "trim_options_allowed_html".

Comments

sleopold created an issue. See original summary.

sleopold’s picture

StatusFileSize
new2.02 KB
anybody’s picture

adamcadot’s picture

StatusFileSize
new2.34 KB
adamcadot’s picture

Version: 2.0.x-dev » 2.1.0
Status: Active » Needs review
ultimike’s picture

Status: Needs review » Postponed

We are hesitant to add additional configuration fields to the Smart Trim UI.

I think that this is a bit of an edge case, but I would like to see if this functionality could be implemented in a separate module using hook_form_alter() and an updated hook_smart_trim_link_modify() (once #3357315: hook_smart_trim_link_modify() does not do anything useful) is fixed.

If not, it would make sense to consider what else we could do to make this sort of thing possible in a separate module (maybe adding an additional hook somewhere?)

So, for now, let's mark this as "Postponed" until #3357315: hook_smart_trim_link_modify() does not do anything useful is fixed.

-mike

hydra’s picture

This is indeed a duplicate of https://www.drupal.org/project/smart_trim/issues/2901579
To upgrade from this patch to the MR in 2901579

littlecoding’s picture

StatusFileSize
new2.32 KB

Updated patch 3 to work with changes from 2.1.1.