Jump to:

7938 Posts in 1541 Topics by 945 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » $Content.LimitWordCountXML adding 'br' tags

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 1343 Views
  • mitel
    Avatar
    Community Member
    1 Post

    $Content.LimitWordCountXML adding 'br' tags Link to this post

    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.

  • Marcel
    Avatar
    Community Member
    1 Post

    Re: $Content.LimitWordCountXML adding 'br' tags Link to this post

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

  • BenWu
    Avatar
    Community Member
    89 Posts

    Re: $Content.LimitWordCountXML adding 'br' tags Link to this post

    i was looking for this. Thank you.

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

    1343 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.