Answer the question
In order to leave comments, you need to log in
Which htmlEntities are used by Facebook, Google or Twitter?
Hello, tell me please.
I use the following function on my project on the frontend to be safe from using xss
function htmlEntities(str) {
return String(str).replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"');
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question