Front-end/JavaScript

태그 없애는 정규표현식

calvin9150 2021. 7. 16. 03:09

const post = 대충태그이것저것있는 글

const regex = /(<([^>]+)>)/gi;

const content = post.replace(regex"");