Advertisement
Savelyev_Vyacheslav

removeTags

Oct 25th, 2023 (edited)
547
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function removeTags(text) {
  2.     return text.replace(/<[^>]*>/g, '').trim()
  3. }
  4.  
  5. function removeSymbols(input) {
  6.   // Замена всех вхождений от & до ; на пустую строку
  7.   return input.replace(/&[^;]*;/g, ' ').trim()
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement