Closed Rhababo closed 1 year ago
bbcode like an a html is ignoring case of tags, so i think the parser andonlyAllowTags
also should ignore the case of tags. I fix this behavior in next release.
bbcode like an a html is ignoring case of tags, so i think the parser and
onlyAllowTags
also should ignore the case of tags. I fix this behavior in next release.
Thanks! Pretty excited for this fix.
Fixed in 3.0.2
The allowed tags settings doesn't have an option for checking for case sensitivity.
One option to fix this is to add a .toLowerCase() to the isAllowedTag() function in the parser
toTagNode() already contains a .toLowerCase() statement
so all tags get converted to lowercase anyway.
Could we either add .toLowerCase() to the isAllowedTag function, or, if we want block incorrectly cased tags, can we add an option that when flagged allows for case insensitive tags?