Hi,
i have a custom component that allows users to save custom html/css/js. The problem is that i cannot save any component having this string into a textfield or textarea: substr()

Network response:

If i remove substr() it can be saved. Is there some security checks done on strings when saving content? how can i save such a string? It works with core components, so i guess it can be saved somehow.
Thanks for the help!