Skip to main content

Bug Tracker

Side navigation

#14591 closed bug (duplicate)

Opened November 29, 2013 07:32AM UTC

Closed December 02, 2013 03:49PM UTC

Issue in .html()

Reported by: Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.10.2
Keywords: Cc:
Blocked by: Blocking:


When I use .html (String) method where string has some java script. After apply .html its fails and give error as

Uncaught SyntaxError: Unexpected token < jquery-1.10.2.js:612 <https://localhost:7004/XYZ/JS/jquery-1.10.2.js>(anonymous function)jquery-1.10.2.js:612

The same piece of code is working fine in jQuery 1.9.1.

I debug the issue and got a point that the text which is appended by the .html method has some java script inside it and also has the < sign in a for loop.

Please suggest the appropriate way of solving this issue.

Attachments (0)
Change History (1)

Changed December 02, 2013 03:49PM UTC by timmywil comment:1

resolution: → duplicate
status: newclosed

Duplicate of #14590.