Hot to prevent .text to escape the html tags on the browser?

前端 未结 2 365
野的像风
野的像风 2021-01-28 15:44

The following code apparently escapes the HTML tags and prints

Full Membership - 1 Year:$25

on the Bro

2条回答
  •  醉梦人生
    2021-01-28 16:03

    Use .html insted of .text. Because .text displays the contents which is in quotes

    DEMO

提交回复
热议问题