You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 23, 2024. It is now read-only.
Is there any possibility to allow case sensitive attributes with this package along with a config setting.
I have HTML like below and it removes case sensitive attributes even I add the attribute's named categoryType under allowed_attributes for div tag.
Ex:
<div class="custom" categoryType="books"></div>
Sanitizer is returning for above HTML as below.
<div class="custom"></div>
I have debug your library and found it identify the attribute as "categorytype" (all letters are in lower case). But could we have case sensitive attributes ?
Concern 02
Sanitizer package is removing empty strings value of a attribute like below. (="")
But could we have empty string as attribute value. May be we can allow this feature as well with a config setting. <a rel="" href="https://github.com/tgalopin/html-sanitizer/">HTML Sanitizer</a>
The text was updated successfully, but these errors were encountered:
Concern 01
Is there any possibility to allow case sensitive attributes with this package along with a config setting.
I have HTML like below and it removes case sensitive attributes even I add the attribute's named
categoryType
underallowed_attributes
fordiv
tag.Ex:
<div class="custom" categoryType="books"></div>
Sanitizer is returning for above HTML as below.
<div class="custom"></div>
I have debug your library and found it identify the attribute as "categorytype" (all letters are in lower case). But could we have case sensitive attributes ?
Concern 02
Sanitizer package is removing empty strings value of a attribute like below. (="")
Ex:
<a rel="" href="https://github.com/tgalopin/html-sanitizer/">HTML Sanitizer</a>
Sanitizer returns
<a rel href="https://github.com/tgalopin/html-sanitizer/">HTML Sanitizer</a>
But could we have empty string as attribute value. May be we can allow this feature as well with a config setting.
<a rel="" href="https://github.com/tgalopin/html-sanitizer/">HTML Sanitizer</a>
The text was updated successfully, but these errors were encountered: