How to strip HTML tags with jQuery?

后端 未结 5 954
别跟我提以往
别跟我提以往 2020-11-27 04:12

I want to remove HTML tags from a string. For example assume we have the string:

 

example ive got a string

How can I wr

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-27 04:38

    This is a example for get the url image, escape the p tag from some item.

    Try this:

    $('#img').attr('src').split('

    ')[1].split('

    ')[0]

提交回复
热议问题