Sha256: 7dbc1bd163d62116f3904c499d39f95457333b4262d3b26b9b899167b6c4a887

Contents?: true

Size: 274 Bytes

Versions: 23

Compression:

Stored size: 274 Bytes

Contents

function decodeEntities(content) {
  var txt = document.createElement("textarea");
  txt.innerHTML = content;
  return txt.value;
}

function prefixString(string, prefix = null) {
  return prefix ? `${prefix}-${string}` : string;
}

export { prefixString, decodeEntities };

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
lookbook-1.1.1 app/assets/lookbook/js/helpers/string.js
lookbook-1.1.0 app/assets/lookbook/js/helpers/string.js
lookbook-1.0.8 app/assets/lookbook/js/helpers/string.js
lookbook-1.0.7 app/assets/lookbook/js/helpers/string.js
lookbook-1.0.6 app/assets/lookbook/js/helpers/string.js
lookbook-1.0.5 app/assets/lookbook/js/helpers/string.js
lookbook-1.0.4 app/assets/lookbook/js/helpers/string.js
lookbook-1.0.3 app/assets/lookbook/js/helpers/string.js
lookbook-1.0.2 app/assets/lookbook/js/helpers/string.js
lookbook-1.0.1 app/assets/lookbook/js/helpers/string.js
lookbook-1.0.0 app/assets/lookbook/js/helpers/string.js
lookbook-1.0.0.rc.3 app/assets/lookbook/js/helpers/string.js
lookbook-1.0.0.rc.2 app/assets/lookbook/js/helpers/string.js
lookbook-1.0.0.rc.1 app/assets/lookbook/js/helpers/string.js
lookbook-1.0.0.beta.8 app/assets/lookbook/js/helpers/string.js
lookbook-1.0.0.beta.7 app/assets/lookbook/js/helpers/string.js
lookbook-1.0.0.beta.6 app/assets/lookbook/js/helpers/string.js
lookbook-1.0.0.beta.5 app/assets/lookbook/js/helpers/string.js
lookbook-1.0.0.beta.4 app/assets/lookbook/js/helpers/string.js
lookbook-1.0.0.beta.3 app/assets/lookbook/js/helpers/string.js