Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have a node with the body "
Lorem ipsum dolor sit amet
consectetur adipiscing". If I check "strip HTML tags" in the view for this field
* the output is "Lorem ipsum dolor sit ametconsectetur".
* a more logical output would be "Lorem ipsum dolor sit amet consectetur"
The difficulty here is that we want certain tags to be replaced by a space, and others with an empty string. So for example
amet</h3><p>consectetur ==> "amet consectetur"
amet</span><span>consectetur ==> "ametconsectetur"