Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

<u> tag not supported #64

Closed
adriflorence opened this issue Aug 3, 2021 · 3 comments
Closed

<u> tag not supported #64

adriflorence opened this issue Aug 3, 2021 · 3 comments

Comments

@adriflorence
Copy link

adriflorence commented Aug 3, 2021

Hi,
I am using html/sanitizer version 1.4.0 in a Symfony project, and the Sanitizer filters out the <u> tags even though it is explicitly configured in the tags section as in the configuration reference file.

      $sanitizer = Sanitizer::create([
          'extensions' => ['basic', 'code', 'image', 'list', 'table', 'details', 'extra'],
          'tags' => [
              'u' => [
                  'allowed_attributes' => [],
              ],
          ],
      ]);

I noticed there was a PR (#61) for adding <u> tags into the basic extension but it's not been released yet. Are tags only available from within extensions? So until that commit is released there will be no support for <u> tags?
Could someone please advise?

Thanks a lot!

@huynguyen93
Copy link

I have the same issue

@fbastien
Copy link
Contributor

@adriflorence Indeed support for <u> tag (and documentation mentioning it) was merged in the repository but not released yet. In order to handle <u> tags you have to either wait for next version to be released, or create your own extension in your project in the meantime.

@tgalopin
Copy link
Owner

It is now!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants