Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1114081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:57:20+00:00 2026-05-17T02:57:20+00:00

I have a node with a text area editable with CKEditor. THis means my

  • 0

I have a node with a text area editable with CKEditor. THis means my customer can add italic style with it.

Then I have a VIew in which I’m trimming this text area for each node to 140 characters.

The problem is that if my customer adds italic style right before the treshold, the text is not closed, and I have html errors (for example, the rest of the page is in italic).

Actually the trimming is not working very well becasue it doesn’t close the tags after cutting the text.

How can I solve this ? I’m usually very basic functionalities of Drupal.

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T02:57:21+00:00Added an answer on May 17, 2026 at 2:57 am

    Very interesting and I confirm your findings. I made an arbitrary view in the unformatted style that shows node title and node body (which is chopped off at, say, 200 chars). In a particular node body I added the <em> tag that starts before the 200 characters. The ending </em> is much later. When is see the view, you’re right — the <em> is not closed after the trim performed by the views. All text becomes italicized in subsequent rows.

    I’ve re-opened an old issue on Drupal.org see

    http://drupal.org/node/379354

    I’ve posted a comment. See
    http://drupal.org/node/379354#comment-3514064

    Edit: Views is okay after all!
    This is how your solve your problem:

    Make sure (underneath the trim settings) click on the checkbox
    [x] Field can contain HTML
    If checked, HTML corrector will be run to ensure tags are properly closed after trimming.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following node /html[1]/body[1]/div[1]/div[1]/div[3]/div[1]/div[7]/p[1]/#text[1] How can I figure out that the last
I have a treeview which contains, per node, a key and text. However, there
Let me explain best with an example. Say you have node class that can
If I have a QuadCurve like this ( + = node): + + \
I have node set with header, leading, body text etc... I want to make
i have 2 text node and 1 jquery object, i want append them into
Greetings! I have some XML like this: <Root> <MainSection> <SomeNode>Some Node Value</SomeNode> <SomeOtherNode>Some Other
I have cut and paste this example from http://devguru.org/Technologies/xmldom/quickref/node_selectSingleNode.html and I can't get it
I have this simple function to find unwrapped text and wrap it into a
i have load a tree view. i want to Traverse treeview node and expand

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.