normalizeSharingProduct
normalizeSharingProduct(
candidate):SharingPageProduct|null
Defined in: utils/product/sanitizeProducts.ts:101
Normalise one untrusted candidate into a SharingPageProduct, or null
when it has no usable title. products is a public API boundary, so every
URL field is validated structurally before reaching new URL(...).
Parameters
Section titled “Parameters”candidate
Section titled “candidate”unknown
Returns
Section titled “Returns”SharingPageProduct | null