kylephillips / favorites

Simple and flexible favorite buttons for any WordPress post type.
https://favoriteposts.com
223 stars 86 forks source link

Quotes in "No Favorites Text" field yielded unexpected results. #117

Open krisphelps opened 5 years ago

krisphelps commented 5 years ago

Hi There,

Great plugin. I implemented it on a site and put the below text in the "No Favorites Text" field, then outputted it onto a page via the shortcode.

No "Loved" posts yet, but that's OK!

For a moment, the full text would appear on the page, then it would shorten down to just "No" (sans quotes).

When I went back to the admin area, I only saw the word No in the text box. I tried backslash escaping, but it also behaved oddly, outputting No \

It also seems to have trouble with single quote/apostrophes.