Page MenuHomeSealhub

Properly escape tabs id
Open, NormalPublic0.5 Points

Description

In https://hub.sealcode.org/source/sealious-playground/browse/master/src/back/routes/tabs-demo.page.tsx the IDs for the tabs are used as labels. But that can cause problems when the user wants labels to contain spaces. This task is about fixing that โ€” remove all characters from the id/label of the tag that cannot be a part of id in HTML and replace them with ascii replacements (https://www.npmjs.com/package/normalize-diacritics) for word characters and for non-word characters โ€” with hyphens