Javascript unterminated constant string

I have the following function that I pass to a value, but that value comes from the database. However, I get the following javascript when doing the following:

showrootcausedetails('showrootcause',true,'<%# eval("Root Cause Analysis").ToString() %>') 

I know that I need to avoid characters, but how can I do this without knowing what is in the real string?

Thanks,

Jacob

+4
source share
1 answer
+7
source

Source: https://habr.com/ru/post/1345466/


All Articles