Actions
Bug #10574
closedTyping an apostrophe breaks free-entry portfolio fields
Status:
Resolved
Priority name:
High
Assignee:
Category name:
Public Portfolio
Target version:
Start date:
2018-10-23
Due date:
% Done:
0%
Estimated time:
Deployment actions:
Description
Haven't tested across browsers, but at least in Firefox:
1. Edit portfolio
2. Create 'Academic Interests' field
3. Type something that contains a single apostrophe
4. Click OK
Nothing happens, and you get a console error from jQuery. What appears to be happening is that the apostrophes are going into the DOM somewhere as unescaped, which means they're breaking jQuery's html() method.
I've played for a few minutes with a solution that catches apostrophe input and converts it to an HTML entity, but it doesn't seem to be a quick fix. I'm attaching a WIP diff so I can pick this up later.
Files
Related issues
Actions