count_paragraphs

Outputs the number of paragraphs found in the input.

Count calculated by splitting the tag output at line breaks (regex: [\r\n]+) and then returning the length of the items.

Example ΒΆ

<$mt:EntryBody count_paragraphs="1"$>
This page was last updated on 2009-06-30, 12:42.

Leave a note

Have a question? Please use the MT Forums. Notes submitted on documentation should pertain to tips & hints regarding documentation. Your note may be removed once its contents have been integrated into the body of the page.