Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba

$Content.LimitWordCountXML adding 'br' tags


Go to End


3 Posts   1976 Views

Avatar
mitel

Community Member, 1 Post

13 August 2010 at 5:32pm

How can I stop 'LimitWordCountXML' from generating a HTML 'br' tag whenever it comes upon a double 'br' tag in the page content?
I am not concerned if the page content is split on a half word, I just need the search results to flow across the entire width of my HTML container element and not keep having a 'br' tag after every few words which creates a very narrow column.
Thanks.

Avatar
Mediaweb-NL

Community Member, 1 Post

9 March 2011 at 3:49am

I am using $Content.LimitWordCount and not $Content.LimitWordCountXML and this will return the content without the <br /> tags

Avatar
BenWu

Community Member, 97 Posts

10 July 2012 at 9:36pm

i was looking for this. Thank you.

The tutorial of site search by SS uses $Content.LimitWordCountXML and therefore we follow