Keyword

Keeping formatting for introtext

  • Kieren Trinder
  • Kieren Trinder's Avatar Topic Author
  • Offline
  • New Member
More
13 years 10 months ago #90863 by Kieren Trinder
Keeping formatting for introtext was created by Kieren Trinder
Hiya
I've set a word limit on the introtext in the item view options in category listings.

Is there any way to keep the formatting on the introtext? Currently, it mashes everything into one paragraph. Code cleanup is set to "no" in the parameters.

It's driving me very slightly mental....

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago #90864 by Winky Lau
Replied by Winky Lau on topic Keeping formatting for introtext
I have the same problem while I am using K2 Lof Scroller, Can anyone please help?

 

Thank you very much.

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago #90865 by Terry Britton
Replied by Terry Britton on topic Keeping formatting for introtext
You will have to use a more advanced truncate function.  There are a lot out there if you search for "php truncate preserve html."  I haven't tried this one out, but looks like it will work: www.the-art-of-web.com/php/truncate/.

 

If multiple paragraphs are being mashed into one, then I would double check that strip html is set to no.  Or set it to yes and exclude the <p> and </p> tags.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum