Skip to content

Truncate sanitizer #163

@adrianbj

Description

@adrianbj

Short description of the enhancement

Add a truncate() method to the sanitizer class.

Current vs. suggested behavior

Maybe the sanitizer class isn't the right place for it - maybe just a public function: wireTruncate() or something?

Why would the enhancement be useful to users?

I think this is a very common need and it would be nicer than using our own versions.

Optional: Screenshots/Links that demonstrate the enhancement

I think you could make use of this function:
https://github.com/processwire/processwire/blob/57b297fd1d828961b20ef29782012f75957d6886/wire/modules/Markup/MarkupRSS.module#L181

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