sdk
sdk copied to clipboard
Custom attributes replacement
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".