Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function removeTags(text) {
- return text.replace(/<[^>]*>/g, '').trim()
- }
- function removeSymbols(input) {
- // Замена всех вхождений от & до ; на пустую строку
- return input.replace(/&[^;]*;/g, ' ').trim()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement