When I try to add HTML code to my widget , is shoes an error that tags should be removed.
How to solve my problem
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.
Sign up to join this communityChanges were made to the Text Widget in WordPress 4.8. The editing experiencing was enhanced in some ways but this also caused issues with certain HTML tags and formatting.
Fortunately, a new Custom HTML Widget was added in WordPress version 4.8.1. The Custom HTML Widget allows <script>
tags, and will not remove certain formatting unlike the new version of the Text Widget: