{{~exec(function() { helpers.var.translations = { leo : data.translations.leo } })}} {{#listing}} {{~exec(function() { helpers.var.image = helpers.plugins.cloudinary.createResource({ imageUrl: data.primary_image_url || helpers.plugins.sv_site.siteConfig.custom[helpers.plugins.sv_site.site].defaultImageUrl, }); const PUNCT_EOL_RX = new RegExp(/(&[#\w]+?;|[ ;\:\/,\.\-–—])+$/); let nohtml = helpers.plugins.stringLib.stripHtml(data.description); let newDesc = helpers.plugins.stringLib.substringOnWord(nohtml, 216); if (newDesc.length < nohtml.length) { newDesc = newDesc.replace(PUNCT_EOL_RX, '') + '…' } helpers.var.plainDescription = newDesc; })}}
{{~var.plainDescription}}
{{/}} {{~fill(helpers.partial('listing_ta_snippet'), data)}}