Вход Регистрация
Файл: error-kitty/node_modules/express/node_modules/escape-html/index.js
Строк: 11
<?php
/**
 * Escape special characters in the given string of html.
 *
 * @param  {String} html
 * @return {String}
 * @api private
 */

module.exports = function(html) {
  return 
String(html)
    .
replace(/&/g'&amp;')
    .
replace(/"/g, '&quot;')
    .replace(/'/g, '&#39;')
    .replace(/</g, '&lt;')
    .replace(/>/g, '&gt;');
}
?>
Онлайн: 0
Реклама