I have a node type with an image field and insert button to get the image into the text field.

Then there is a view that is getting the content of the text field and shortening it to 150 characters. But if there is an inline image at the beginning of the text the view is only showing three points that are linked to the image.

How can I exclude the inline images from views?


You could use the Rewrite results option on that field and choose Strip HTML tags.

This will "remove" the image from display.

If you have some other HTML inside the Body that you want to keep you can enter them into the Preserve certain tags field, for example <em> <span> <p>.

  • Ok, this was almost too easy :D, thank you! – 0711master May 24 at 16:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.