javascript - Loading dynamic data using html() breaks the script when the loaded content has special characters -


I am getting dynamic data from the database and using the HTML () function I am adding to my HTML. Everything is fine, but when in dynamic data '' gt; ' Or '& lt;' As a tag script, it takes HTML tags and data and script breaks.

  Function Showcase Extractive (E, T, N, R, I) seems to be {var s = $ (e) ("input.keywordFrequencyIdList"); Val () .; Var o = $ (e) .find ("input.keywordId"). Val (); Var u = $ (e) .find (". KeywordValue"). Val (); $ (".hashkeyword"). Text ("#" + U); $ ("# Tab-1"). Html ('

how to solve this error Please help me for any

Use $ ("# tabs-1" ). to avoid special characters.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -