Skip to content

Punctuation removed when adding text leads to combined words #13

@csteelatgburg

Description

@csteelatgburg

When adding a large chunk of text with punctuation I found that the formatTag function was combining words instead of leaving them as separate. My quick fix for this was to change:
preg_replace('/[^\w ]/u', '', strip_tags($string));

to:
preg_replace('/[^\w ]/u', ' ', strip_tags($string));

I'm not sure if this is an ideal solution or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions