Home > front end >  Use js to img plus the terminator
Use js to img plus the terminator

Time:05-25

Var STR="& lt; Div> ";
With chrome check element found no terminator img tags
How to add? Thank you very much!

CodePudding user response:

Var STR="& lt; Div> ";
No problem,
In HTML, & lt; Img> Tag has no end tag,
In the XHTML, & lt; Img> Tags must be properly closed,
http://www.runoob.com/tags/tag-img.html

CodePudding user response:

I want to use in the XHTML, so there must be the terminator, want to use js to add, regular can't write it out

CodePudding user response:

reference 1st floor qq_29594393 response:
var STR="& lt; Div> ";
No problem,
In HTML, & lt; Img> Tag has no end tag,
In the XHTML, & lt; Img> Tags must be properly closed,
http://www.runoob.com/tags/tag-img.html


I want to use in the XHTML, suggest no end, so want to use js to add. To solve

CodePudding user response:

Use js to HTML string of img and terminator, solving solution

CodePudding user response:

The building Lord finally how to solve?
  • Related