Skip to content

Non-Latin description #32

@StasRa

Description

@StasRa

You cut too long descriptions:

if (strlen($content) > 150) {
    $content = substr($content, 0, 150).'...';
}

But it works incorrectly for non-Latin letters. Is it possible to replace strlen/substr with mb_strlen/mb_substr?

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