A nice function using es6 for escaping html: const escapeHTML = str => str.replace(/[&<>'"]/g, tag => ({ '&': '&', '<': '<', ...
確定! 回上一頁