Re: [campsite-support] Optimizing meta tags for google
  • Terix,

    Mugur is right, you can use strip_tags modifier to remove html tags
    and you can use it combined with truncate modifier, just be aware how
    it works:

    {{ $campsite->article->corpo|truncate:200:""|strip_tags:false }}

    will not probably give you the output you are expecting for (as you
    are truncating before stripping, so html tags and content within them
    will be count as part of the first 200 chars), while:

    {{ $campsite->article->corpo|strip_tags:false|truncate:200:"" }}

    will work better.



    On Fri, Jan 15, 2010 at 10:12 AM, wrote:
    > Author: Terix
    > Link: