Hello everyone,
I am having an issue, the Cross-Site Scripting validations on Portal do not allow me to Update/Save a record.
My records have a description field where the content contains HTML tag </br>, this tag is needed.
Do you have any suggestion ?
Many thanks in advance,
Irena.
*This post is locked for comments
Found also:
function escapeHtml(unsafe) { return unsafe .replace(/&/g, "&") .replace(/</g, "<") .replace(/>/g, ">") .replace(/"/g, """) .replace(/'/g, "'"); }
In my case, the field was readonly and assigning text area:
var text = originalText.replaceAll("<br/>", "");
Hi Iran
Can you please replace the description field HTML tag before saving like below -
var text = descriptiontext.replace(/&/g, "&").replace(/>/g, ">").replace(/</g, "<").replace(/"/g, """);
And then assign the description text again with above text.
Mohamed Amine Mahmoudi
83
Super User 2025 Season 1
Community Member
54
Victor Onyebuchi
6