3 ms·
> the problem is that htmlspecialchars() doesn't know to escape {{ }}, and that that then allows user input to get interpreted as Vue template expressions Argu
by krapp 9y ago
> the problem is that htmlspecialchars() doesn't know to escape {{ }}, and that that then allows user input to get interpreted as Vue template expressions
Arguably, that's not a problem, because '{' and '}' aren't HTML special characters, so the function is working exactly as intended.