JS: Extract text from a string without jQuery

前端 未结 3 1460
感情败类
感情败类 2021-01-19 05:27

I have this string:

var string = \'
\"Ice-cream\"
3条回答
  •  再見小時候
    2021-01-19 05:53

    You can use regex to get text from string that contains HTML tags.

    
    

    This way you strip all HTML tags with empty string.

提交回复
热议问题