-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nbsp resulting in weird character #16
Comments
I'm experiencing the same thing both in my Twig templates, and when running something through the HacksawFilter function outside of Twig (in an ElementAPI transformer). Oddly enough, in that case even if I string replace the |
I have this problem as well with some characters with accents such as "à", but strangely not "û". |
With mbstrings enabled you can fix this: Replace line 69: |
Having the same issue. Thanks @FrancisBou for the quick fix. |
Having the same issue, you would have though a replace filter after hacksaw would be able to sort this, but, nope! |
Same issue here. #16 (comment) works for me. Hope it can be fixed officially. Thanks for the plugin! |
@dennisfrank it's fixed, I think, repo has moved here: |
@lexbi Cool! Thanks. |
How are we supposed to know the hacksaw repo moved to a new location and has been updated to 2.0? How did you find that out? I don't see a note of the README here or anything. @lexbi |
I will let @ryanshrum tell you, not my place. |
Sure, I was just curious how you became aware of the new repo. We had no idea it existed. |
I saw Ryan post in Craft Slack I think. Either that or some of us were discussing it and he chimed in. |
Hacksaw 1.1.2
Craft 2.6+
Our rich text field has
all over. If we output the field normally, it appears fine.{{ blogEntry.body }}
But when we use Hacksaw,
{{ blogEntry.body|hacksaw(words='100',allow='<p><b>',append='...') }}
the result is that all the non-breaking spaces are displaying as those odd black diamond characters: �
Any idea why that might be?
The text was updated successfully, but these errors were encountered: