OneSignal-WordPress-Plugin icon indicating copy to clipboard operation
OneSignal-WordPress-Plugin copied to clipboard

Adding Apostrophes to Slide prompt or push message title do not display correctly

Open jfishman1 opened this issue 4 years ago • 1 comments

When adding an Apostrophe or emojis into the Slide Prompt it gets replaced with ' or within the title of the post for the push, it gets replaced by ////

Example Slide prompt:

Action Message: We'd like to show y'all new updates don'tcha know!

Confirm button: Yes'ir Cancel button: Don't

Screen Shot 2020-10-08 at 4 13 59 PM Screen Shot 2020-10-08 at 4 14 22 PM

Similar issue with apostrophe in the post title, using the same message as a post title, the push looks like this:

Screen Shot 2020-10-08 at 4 32 04 PM

Workaround is to add a unicode apostrophe like this: ˈ

Steps to Reproduce Issue:

  1. Add a message with apostrophe into the slide prompt or notification title fields
  2. visit the site to view the slide prompt
  3. send a push to see the push title off

jfishman1 avatar Oct 08 '20 23:10 jfishman1

I was able to fix this in an upcoming update. But the WordPress plugin settings still adds the / inside each field causing more and more whenever you save.

Here is after 1 save, 2 saves, 3 saves:

Screen Shot 2020-10-28 at 5 30 39 PM Screen Shot 2020-10-28 at 5 30 50 PM Screen Shot 2020-10-28 at 5 31 00 PM

jfishman1 avatar Oct 29 '20 00:10 jfishman1