tests/Leaflet/sl-application.js
/**
 * Try to decode the given string from a URI component to plain unencoded text.
 * In addition to the normal `decodeURIComponent()` decoding, plus `+`
 * characters, which are a historic URL encoding of spaces (such as by PHP
 * `urlencode`, vs `rawurlencode`), are decoded to spaces. If the given text
 * cannot be properly decoded (an unencoded percent sign `%` is present, the
 * encoded characters represent an invalid byte sequence in the current
 * character encoding, etc), the empty string is returned rather than a
 * JavaScript error being raised.
 *
 * @param {String} text the URI component to decode
 * @return {String} the decoded text represented by the URI component (or the empty string)
 */
Try to decode the given string from a URI component to plain unencoded text.

@param {String} text the URI component to decode
@return {String} the decoded text represented by the URI component (or the empty string)
Try to decode the given string from a URI component to plain unencoded text . @param { String } text the URI component to decode @return { String } the decoded text represented by the URI component ( or the empty string )
function safeDecodeURIComponent(text)
{
    try {
        return decodeURIComponent(text.replace(/\+/g, ' '));
    }
    catch (err) {}
    return '';
}
function safeDecodeURIComponent ( text ) { try { return decodeURIComponent ( text . replace ( / \+ / g , ' ' ) ) ; } catch ( err ) { } return '' ; }
Try to decode the given string from a URI component to plain unencoded text.
Try to decode the given string from a URI component to plain unencoded text .