hyperlink - Chrome developer tool erroneously interpreting console log string output as links -
when use console.log display string, chrome interpret portions of string links, , decorate console output accordingly. how can prevented? here sample demonstrates issue. notice although there no links in output of second console.log statement, chrome still interprets portion of hyperlink.
<!doctype html> <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> </head> <body> <p id="jedi_mind_trick">this not demo looking for. move along!</p> </body> <script> function example() { var test = {data:$('#jedi_mind_trick').html(),obi_wan:"kenobi"}; } console.log(typeof example, example); console.log(typeof example.tostring(), example.tostring()); </script> </html>
for else might experiencing problem, have discovered workaround avoids developer console's log output link decoration feature. use chrome devtools copy command copy raw output clipboard follows
copy(example.tostring());
Comments
Post a Comment