You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...
createNode: function(e, data) {
var n = data.node;
n.plainTitle = n.title; // Keep this for later use...
n.setTitle($('<div/>').text(n.title).html());
}
...
This should work (of course only, if the title is not re-rendered, so you could move this code to the render event).
This topic was brought up before, so I will reconsider a general solution.
See #171
I am concerned with security a lot and I have noticed that the node title is rendered as HTML.
Can I prevent that and render the title as text?
Can someone suggest how to best achieve this (preferably without pre-encoding the titles on the server, but doing it on the client)?
I use the tree like so:
Any input would be appreciated. :)
Thanks. :)
The text was updated successfully, but these errors were encountered: