• Resolved israeliinportugal

    (@israeliinportugal)


    Hello,

    I am using the “Tag Groups” plugin on my site. It is working fine. but I found conflict with another plugin, and I am writing to ask for your assistance please with this regards,

    What I am trying to achieve, is to allow using HTML in the “tag description” field. I found a plugin for that, here – https://www.ads-software.com/plugins/allow-html-in-category-descriptions/. However, that plugin will not function properly, unless I deactivate the “Tag Groups” plugin. Only if I deactivate the “Tag Groups” plugin, then I can the “allow-html-in-category-descriptions” plugin works properly and I am able to use HTML on the “tag description” field.

    Any idea how I could solve the matter? Your assistance would be very much appreciated. The two plugins seem to be contradicting…

    Thank you, regards

    https://www.ads-software.com/plugins/tag-groups/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Yes, that is expected behavior. The description field is sanitized, see also https://www.ads-software.com/support/topic/incompatible-with-html-in-tag-description .

    I will check out if I can add an option to disable this.

    Thread Starter israeliinportugal

    (@israeliinportugal)

    Thank you, Chris!

    I was advised to fix this matter with a patch that edits the tag-groups.php file, and replaces on line 713

    $term[‘description’] = stripslashes( sanitize_text_field( $_POST[‘description’] ) );

    with:

    //$term[‘description’] = stripslashes( sanitize_text_field( $_POST[‘description’] ) );
    $term[‘description’] = $_POST[‘description’];

    Is this a good solution? Does it makes sense?

    Thank you

    Yes, that should work. The description is escaped before output, so there should not be any security risk.

    I am currently working on a new version where you can enable HTML output in the settings.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plugins’ is closed to new replies.