💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
当你需要在某个文本中将里面的标签全部过滤掉 ~~~ const stripHtml = (html) => new DOMParser().parseFromString(html, 'text/html').body.textContent || ''; stripHtml('<div>test</div>') // 'test' ~~~