Sha256: 7ebb1b50dd71bae8b9fee1583d2b7c3e72e6ae70787c34322c9986b6e77ce2b9

Contents?: true

Size: 189 Bytes

Versions: 48

Compression:

Stored size: 189 Bytes

Contents

function escapeHTML(unsafe)
{
  return unsafe
    .replace(/&/g,'&')
    .replace(/</g, '&lt;')
    .replace(/>/g, '&gt;')
    .replace(/"/g, '&quot;')
    .replace(/'/g, '&#039;');
}

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
incline-0.2.26 app/assets/javascripts/incline/escapeHtml.js
incline-0.2.25 app/assets/javascripts/incline/escapeHtml.js
incline-0.2.24 app/assets/javascripts/incline/escapeHtml.js
incline-0.2.23 app/assets/javascripts/incline/escapeHtml.js
incline-0.2.22 app/assets/javascripts/incline/escapeHtml.js
incline-0.2.21 app/assets/javascripts/incline/escapeHtml.js
incline-0.2.20 app/assets/javascripts/incline/escapeHtml.js
incline-0.2.19 app/assets/javascripts/incline/escapeHtml.js
incline-0.2.18 app/assets/javascripts/incline/escapeHtml.js
incline-0.2.17 app/assets/javascripts/incline/escapeHtml.js
incline-0.2.16 app/assets/javascripts/incline/escapeHtml.js
incline-0.2.15 app/assets/javascripts/incline/escapeHtml.js
incline-0.2.14 app/assets/javascripts/incline/escapeHtml.js
incline-0.2.13 app/assets/javascripts/incline/escapeHtml.js
incline-0.2.12 app/assets/javascripts/incline/escapeHtml.js
incline-0.2.11 app/assets/javascripts/incline/escapeHtml.js
incline-0.2.10 app/assets/javascripts/incline/escapeHtml.js
incline-0.2.9 app/assets/javascripts/incline/escapeHtml.js
incline-0.2.8 app/assets/javascripts/incline/escapeHtml.js
incline-0.2.7 app/assets/javascripts/incline/escapeHtml.js