sdk icon indicating copy to clipboard operation
sdk copied to clipboard

Custom attributes replacement

Open RafaelGCruvinel opened this issue 2 years ago • 0 comments

Enhancements to HTML-to-JSON Converter

This pull request introduces several enhancements to our HTML-to-JSON converter for the ChaiBuilder project:

Custom Attribute Replacement:

Implemented support for generic attribute replacement using the data-chai-replace-* prefix. This allows for dynamic substitution of HTML attributes with specified values, providing greater flexibility and customization.

Enhanced the attribute processing logic to better handle custom attributes and replace specified attributes based on the data-chai-replace-* prefix.

Example: <div data-chai-replace-_name="CustomBlockName">Content</div> will replace the _name attribute with "CustomBlockName".

RafaelGCruvinel avatar May 30 '24 14:05 RafaelGCruvinel