I need to remove the p tags that richtext adds in so found the excerpt method that works using the following line
but that removes all HTML but need to allow span as some words will be different colour to the rest so tried the following but all the HTML is being removed still and does not allow span to be used
- Code: Select all
<cms:excerpt count='218' truncate_chars='1'><cms:show welcometext/></cms:excerpt>
but that removes all HTML but need to allow span as some words will be different colour to the rest so tried the following but all the HTML is being removed still and does not allow span to be used
- Code: Select all
<cms:excerpt count='218' truncate_chars='1' allow='span'><cms:show welcometext/></cms:excerpt>