I'm expected to get different types of values from users to build a custom JS, for some simple input I can validate them, but I have some input that I can't validate for example I want to let the user enter an HTML template that encapsulates some output.
In another case I want the user to enter a custom easing-function. My question is sanitizing HTML template string and putting it directly into JS safe?