S-Tags Outputs Special Entities in Entity Form in Tax Receipts

Options
Hi everyone,


Has anyone also run into this issue? 


Currently, we use the S-tag [[S120:dc:employer]] to display an organization's name into the tax receipt. However, when an organization has a special character in their name it gets converted to their entity form (i.e ampersands gets converted into &).


Is there anyway around this?


Thank you!
Tagged:

Comments

  • I don't know of any decode tag, but I'd try the S130 tag and replaceall.

    https://www.blackbaud.com/files/support/helpfiles/luminate-online/help/luminateonline.html#../Subsystems/S-Tags/Content/S-Tags/S-130-reverse-polish-notation.html


    Something like:


    [[E130: [[S120:dc:employer]] & & replaceall]]
  • Brian Mucha:

    I don't know of any decode tag, but I'd try the S130 tag and replaceall.

    https://www.blackbaud.com/files/support/helpfiles/luminate-online/help/luminateonline.html#../Subsystems/S-Tags/Content/S-Tags/S-130-reverse-polish-notation.html


    Something like:


    [[E130: [[S120:dc:employer]] & & replaceall]]

    Thank you for the suggestion! I've never used the S130 tag before.


    Unfortunately the results I got when I tested this consistently outputted only the last word of the organization name.


    I did a bit of research into rpn expressions and it seems like it's used to simplify mathematical equations. I did not see any supported functions, so how does calling replaceall work inside of a S130 tag? Also, replaceall is a reference to the built-in function in Java right?

  • Oh I know what the issue is. the spaces between words are screwing
    up the formula. This tag, and polish notation itself, works in the
    format value space value space operation.


    So 3 2 + would give you five.


    The cool thing about that is then the answer 5 can be the first
    value in a chained operation that follows.


    So 3 2 + 4 - would result in the answer 1.


    Make sense? The answer 1 comes from the first answer 5 the value 4
    and the operation minus. You can make a really long chains of logic
    that build upon the previous operation.


    So spaces are delimiters in the Polish notation formula.


    So thisorthat or and replaceall would work.


    Not sure if this helps or this idea was misguided.


    Regards,


    Brian Patrick Mucha

    Associate Director, Digital Programs
  • Brian Mucha:

    Oh I know what the issue is. the spaces between words are screwing up the formula. This tag, and polish notation itself, works in the format value space value space operation.


    So 3 2 + would give you five.


    The cool thing about that is then the answer 5 can be the first value in a chained operation that follows.


    So 3 2 + 4 - would result in the answer 1.


    Make sense? The answer 1 comes from the first answer 5 the value 4 and the operation minus. You can make a really long chains of logic that build upon the previous operation.


    So spaces are delimiters in the Polish notation formula.


    So thisorthat or and replaceall would work.


    Not sure if this helps or this idea was misguided.


    Regards,


    Brian Patrick Mucha

    Associate Director, Digital Programs

    Yes, I understand the issue with spaces and the rpn format.


    What I don't understand is how S130 is able to call built-in functions from what I assume is Java.


    Is it possible to group to the output of [[S120:dc:employer]]?


    Thank you!

  • Donny Zhao‍ ,

    T-tags exist just for this reason.

    Give the following code a try, I believe it should fix all the special character issues: [[T6:[[S120:dc:employer]]]]

    Hope this helps.

Categories