• Resolved Giannis Kipouros

    (@giannis4)


    Hi,

    I have created a custom trigger and I want to pass an HTML table in a merge tag.

    When I do that, the merge tag output does not contain any HTML, just plain text, while the rest of the email allows HTML.

    Is there a filter I could use to remove the HTML filtering of the merge tag?

    Best regards,
    Giannis

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Giannis Kipouros

    (@giannis4)

    I noticed that the problem is a sanitization that happens in the “notification/merge_tag/value/resolve” filter.

    So it would be great if you added the raw value to that filter, so we can manage what characters are accepted and what not, ourselves.

    So this (src/Abstracts/MergeTag.php Line 162):

    $this->value = apply_filters( 'notification/merge_tag/value/resolve', $this->sanitize( $value ) );

    should become

    $this->value = apply_filters( 'notification/merge_tag/value/resolve', $this->sanitize( $value ), $value );
    Plugin Author Kuba Mikita

    (@kubitomakita)

    That’s a great idea! I’ve added this to our backlog, which will be released in the next version.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘HTML in merge tag’ is closed to new replies.