entities showing up in cut text
MikeTheVike opened this issue · comments
MikeTheVike commented
BBDOKC commented
Mike,
Can you give me a snippet of text you are trying to limit and the code you used? This way I can test against exactly what you are after.
Thanks.
MikeTheVike commented
Sure, I'll also attach some screenshots in case something doesn't come over correctly. Wygwam is the fieldtype. Thanks for looking into this and let me know if you need anything else!
The template code is...
<p>
{exp:chopper words="25" append="…"}
{blog_content}
{/exp:chopper}
</p>
The text that gets cut off has an apostrophe in the word "car's"...
Never leave a pet unattended in a parked car when the temperature is more than 70 degrees!
When it’s 72 degrees outside, a car’s temperature can rocket to 116 degrees
Mike Lohrman
On Monday, May 1, 2017, 10:29:15 AM CDT, BBDOKC <notifications@github.com> wrote:
Mike,
Can you give me a snippet of text you are trying to limit and the code you used? This way I can test against exactly what you are after.
Thanks.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
BBDOKC commented
I used your copy in a RTE and in a wygwam field. Both worked properly. (See images)
This was taking your copy and pasting it as plain text. If you use a general paste, you will carry over HTML entities. That's what it looks like is happening.
If you absolutely NEED HTML entities, let me know and I can look at rewriting things to allow for those. ;)
MikeTheVike commented
Thank you, definitely not an emergency. I think I did paste as plain text, but don't remember. I don't think this will be an issue the majority of the time. Thanks again.
On Monday, May 1, 2017, 3:29:22 PM CDT, BBDOKC <notifications@github.com> wrote:
I used your copy in a RTE and in a wygwam field. Both worked properly. (See images)
This was taking your copy and pasting it as plain text. If you use a general paste, you will carry over HTML entities. That's what it looks like is happening.
If you absolutely NEED HTML entities, let me know and I can look at rewriting things to allow for those. ;)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
BBDOKC commented
No worries at all. I just want to make sure it is working for you. :)