Sha256: 3024c2727c4fbaa6d32182e47af83322ea4db5c08189b744801096162c3e3ab2
Contents?: true
Size: 553 Bytes
Versions: 27
Compression:
Stored size: 553 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; } function parseSearchParamValue(value) { const json = decodeURIComponent(value); return JSON.parse(json); } function buildSearchParamValue(data) { const str = JSON.stringify(data); return encodeURIComponent(str); } export { prefixString, decodeEntities, parseSearchParamValue, buildSearchParamValue, };
Version data entries
27 entries across 27 versions & 1 rubygems