BUG REPORT: Box Office Mojo 'Weekend Top 5' embeddable widget cannot handle apostrophes in movie titles
This post is intended for Box Office Mojo's developers but may be of interest to others. My trusty Box Office Mojo Weekend Top 5 widget failed a few weeks ago, and I believe I traced the issue to code that does not account for apostrophes in movie titles. The offending title was "Five Nights at Freddy's" and can be seen tripping up the code in the following query result (see highlighted character): This results in an error that can be spotted in Chrome's Developer Tools: Now that the offending punctuation mark has dropped from the Top 5, things are back to normal: This seems like a simple case of performing proper escaping of the text fields. Love the widget. Hope this helps! --David
Problem
•
Updated
2 years ago
56
2
0
Responses
Sally
Employee
•
892 Messages
•
9.6K Points
2 years ago
0
Michelle
Employee
•
17.9K Messages
•
318.2K Points
2 years ago
0