API / Minn\Content / MoreTag

MoreTag final class

Minn\Content\MoreTag · public/minn/src/Minn/Content/MoreTag.php · 20 lines

The `<!--more-->` marker that splits a post into the part a listing shows and the part only the single view does. The marker may carry its own link text; a second marker further down is ordinary content and stays where it is, as does the `<!--noteaser-->` flag that follows some of them.

Public

staticsplit(string $content): array#

The content on either side of a more tag, with the tag's own text.

@return array{main: string, extended: string, more_text: string}