Skip to content

page: /tags/excerpt #211

Open
Open
@butterp1

Description

@butterp1

URLs

Explanation of immediate task

The trim regex given as an example to trim body for excerpt seems to trip up if textile is enable in the body field (prepending the truncated text with p>), no matter what the escape attributes. I have better luck with <txp:body escape="tags" trim="/^(<[^>]*>)*((?:\w+\W+){35})\w.*$/s" replace="$2&hellip;" />, which excludes initial tags.

Resources to support effort

Current to-dos

  • Maybe update example with note for textile users

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions