8 lines
307 B
JavaScript
8 lines
307 B
JavaScript
import htmlTags from '../json/html-tags.json' with { type: 'json' };
|
|
import htmlVoidTags from '../json/html-tags-void.json' with { type: 'json' };
|
|
|
|
export const unifiedTagCollection = [...htmlTags, ...htmlVoidTags];
|
|
|
|
export default function isValidTag(tag) {
|
|
return unifiedTagCollection.includes(tag);
|
|
} |