core/frontend/services/proxy.js
// Used by router service and {{get}} helper to prepare data for optimal usage in themes
Used by router service and {{get}} helper to prepare data for optimal usage in themes
Used by router service and {{ get }} helper to prepare data for optimal usage in themes
prepareContextResource(data) {
        (Array.isArray(data) ? data : [data]).forEach((resource) => {
            if (resource.feature_image_caption) {
                resource.feature_image_caption = new SafeString(resource.feature_image_caption);
            }
        });
    }
prepareContextResource ( data ) { ( Array . isArray ( data ) ? data : [ data ] ) . forEach ( ( resource ) => { if ( resource . feature_image_caption ) { resource . feature_image_caption = new SafeString ( resource . feature_image_caption ) ; } } ) ; }
Used by router service and {{get}} helper to prepare data for optimal usage in themes
Used by router service and {{ get }} helper to prepare data for optimal usage in themes
// feature_image_caption contains HTML, making it a SafeString spares theme devs from triple-curlies