react-liquid-theme
Version:
A tool for generating shopify .liquid theme files from React components.
10 lines (9 loc) • 398 B
TypeScript
/**
* Extracts and decodes all segments between `startSign` and `endSign` in the input HTML string.
* Handles nested/recursive segments by decoding the innermost first.
* Unmarked areas are left unchanged.
*
* Example:
* decodeHtml('<decode>"</decode>', '<decode>', '</decode>') → '"'
*/
export declare function decodeHtml(html: string, startSign: string, endSign: string): string;