• Resolved kemota

    (@kemota)


    Hello,

    Has something changed during the last update of the plugin – I am talking about the editor in the description of the brand? We added content with additional HTML tags, but now while editing most of the HTML code is removed when saving.

    How can we deal with it?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor titodevera

    (@titodevera)

    Hi kemota.

    Here is the list of the allowed html tags. You can also use shortcodes.

    
    <p><span><a><ul><ol><li><h1><h2><h3><h4><h5><h6><pre><strong><em><blockquote><del><ins><img><code><hr>
    

    🙂

    Thread Starter kemota

    (@kemota)

    What is the problem with the rest of them – like divs and inputs?

    Plugin Contributor titodevera

    (@titodevera)

    There are many reasoms for clean the user input in this case, like prevent security issues or unexpected visual mismatches (for example). Something similar happens with the native WordPres post editor. You should considere that WordPress is used by users of all levels, from basic users to developers.

    I think that the correct way in your case is create a custom shortcode, with custom advanced markup, styles, scripts… (or use shorcodes included in other plugins) and then include it into the brand description field.

    🙂

    Thread Starter kemota

    (@kemota)

    Could you add an option to not clean the code (considering that WP is used by users of all levels)? Because what you are claiming about the native editor is not true. Neither in WP posts nor in Woocommerce categories my code is being cleaned by default.

    Coreect way that you are suggesting won’t do the job here.

    • This reply was modified 6 years, 1 month ago by kemota.
    Plugin Contributor titodevera

    (@titodevera)

    I will consider include a way for deactivating it for the next version.

    Thanks for using PWB 🙂

    Thread Starter kemota

    (@kemota)

    Thank you 🙂

    Thread Starter kemota

    (@kemota)

    Hello,

    Any news about the new plugin version and the ability to add html tags? 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘HTML tags in brand description’ is closed to new replies.