Page 1 of 1

News summary and HTML

Posted: Thu Oct 27, 2016 9:05 pm
by janvl
Hi,

I am testing with CMSMS 2.1.5
The Newsmodule is 2.50.5 and
TinyMCE 3.1.3

When I mark Text in the newssummary fat, undelined, italic or links this is not shown in the frontend.

In newsdetail its is shown.

The template used is Simplex.

I upgraded PHP to 5.6.
Had the caches cleared but it does not show the HTML-coded text, just plain text.

I tested this in 1.12.2 there I get all HTML-coded text as it is ment.

Does anyone have the same problem?
Or maybe a solution?

Kind regards,
Jan

Re: News summary and HTML

Posted: Thu Oct 27, 2016 9:18 pm
by Jos
Check for the strip_tags modifier in the news templates. Just delete them and html won't be stripped

Code: Select all

        {if $entry->summary}
            <p>{$entry->summary|strip_tags}</p>
            <span class='more'>{$entry->morelink} &#8594;</span>
        {else if $entry->content}
            <p>{$entry->content|strip_tags}</p>

Re: News summary and HTML

Posted: Thu Oct 27, 2016 10:29 pm
by janvl
Thanks Jos,

That's it!
Shame, I should have known that.

Kind regards,
Jan