[jQuery] jquery alters some tag with its html function
Hi all,
I'm looking for a shortcut to manipulate a dom XML, and for that I
need the html function from jquery.
My problem is that Jquery alters some tag when using html function, by
instance, I'm aware about the fact that html function is not the right
way to do this but it's seems to be a good shortcut
code :
var test = '<div><image src="images/icons.png></image></div>';
console.log ($(test).html ());
result :
<img src="images/icons.png">
My image tag is transformed in img tag.
If someone has an idea, I will be really grateful.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home