tag-cloud icon indicating copy to clipboard operation
tag-cloud copied to clipboard

Punctuation removed when adding text leads to combined words

Open csteelatgburg opened this issue 9 years ago • 0 comments

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.

csteelatgburg avatar Apr 16 '15 03:04 csteelatgburg