Home > front end >  Using jQuery additional HTML code, the div property doesn't work how to solve
Using jQuery additional HTML code, the div property doesn't work how to solve

Time:10-02

This is the default display, text - overflow: ellipsis. Attributes can be

 & lt; Div style="width: 630 px; overflow:hidden; white-space:nowrap; The text - overflow: ellipsis; "> 





Below is an ajax request return data, additional
 
$. Each (data, function (k, v) {
HTML +='& lt; Div style="width: 630 px; overflow:hidden; white-space:nowrap; The text - overflow: ellipsis; "> '+ v.c ontent +' & lt;/div> '
})
$(' # list '). Append (HTML);



Results to hide all the content of the show out


How to solve this problem, please?

CodePudding user response:

Whether the v.c ontent contains & lt; Br/& gt; Or other tags

CodePudding user response:

The
reference 1/f, sorry reply:
v.c ontent whether contains & lt; Br/& gt; Or other tags


some

CodePudding user response:

The tags are deleted is a line
  •  Tags:  
  • Ajax
  • Related