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
Post a Comment