123456789101112131415161718 |
- var toString = require('../lang/toString');
- /**
- * Unescapes HTML special chars
- */
- function unescapeHtml(str){
- str = toString(str)
- .replace(/&/g , '&')
- .replace(/</g , '<')
- .replace(/>/g , '>')
- .replace(/�*39;/g , "'")
- .replace(/"/g, '"');
- return str;
- }
- module.exports = unescapeHtml;
|