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.3.14 app/assets/javascripts/incline/escapeHtml.js
incline-0.3.13 app/assets/javascripts/incline/escapeHtml.js
incline-0.3.12 app/assets/javascripts/incline/escapeHtml.js
incline-0.3.11 app/assets/javascripts/incline/escapeHtml.js
incline-0.3.10 app/assets/javascripts/incline/escapeHtml.js
incline-0.3.9 app/assets/javascripts/incline/escapeHtml.js
incline-0.3.8 app/assets/javascripts/incline/escapeHtml.js
incline-0.3.7 app/assets/javascripts/incline/escapeHtml.js
incline-0.3.6 app/assets/javascripts/incline/escapeHtml.js
incline-0.3.5 app/assets/javascripts/incline/escapeHtml.js
incline-0.3.4 app/assets/javascripts/incline/escapeHtml.js
incline-0.3.3 app/assets/javascripts/incline/escapeHtml.js
incline-0.3.2 app/assets/javascripts/incline/escapeHtml.js
incline-0.3.1 app/assets/javascripts/incline/escapeHtml.js
incline-0.3.0 app/assets/javascripts/incline/escapeHtml.js
incline-0.2.36 app/assets/javascripts/incline/escapeHtml.js
incline-0.2.35 app/assets/javascripts/incline/escapeHtml.js
incline-0.2.34 app/assets/javascripts/incline/escapeHtml.js
incline-0.2.28 app/assets/javascripts/incline/escapeHtml.js
incline-0.2.27 app/assets/javascripts/incline/escapeHtml.js