Inside a render function in my template I'm passing this parameter:
placeholderTitle: (gettext "Companie\'s name")
I need to escape the ' because that string is going to be used inside inline javascript:
onfocus="if (this.textContent.trim() == 'Companie's name') {//do someting}"
But like that is not working.
"Companie\\'s name"? - Aleksei Matiushkin