Solved: News module strips p tags in

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
Nettie
Forum Members
Forum Members
Posts: 53
Joined: Tue Oct 03, 2006 11:42 pm

Solved: News module strips p tags in

Post by Nettie »

I installed a fresh version of 1.11.2 and are using the simplex template.

When i write a text in news, it doesnt show the p tags in the source code in the news summary.

Example:
<p>some text</p>
<p>some more text</p>

Turns out as:
<p>some text
some more text</p>

in the source. Any suggestions how to fix this?
Last edited by Nettie on Mon Sep 24, 2012 3:30 pm, edited 1 time in total.
User avatar
Nettie
Forum Members
Forum Members
Posts: 53
Joined: Tue Oct 03, 2006 11:42 pm

Re: News module strips p tags in

Post by Nettie »

Found out myself.

In the template i removed |strip_tags from the following:

<p>{eval var=$entry->content|strip_tags}</p>
Post Reply

Return to “CMSMS Core”