I have an expression «${s.xxxName}» where it pulls a value from DB. I

I have an expression «${s.xxxName}» where it pulls a value from DB.

It's throwing error "The entity name must immediately follow the '&' in the entity reference" this when there are special characters in xxxName like '&' I have can you please how I can modify this expression.

I am using this expression in a word document and getting error while converting word to PDF.

Thanks.

OriginalPostID-185963

OriginalPostID-185963

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Senior Developer
    in reply to divyam0003

    This may help to solve this issue

    reduce(
    fn!substitute,
    /*to HTML not neede when all escape char are used, otherwise will doulble escape (e.g. "lt;" without &)*/
    /*toHtml(*/
    ri!inputStr
    /*)*/
    ,
    merge(
    {
    "&",
    "<",
    ">",
    "'",
    """",
    char(10)
    },
    {
    "&amp;",
    "&lt;",
    "&gt;",
    "&apos;",
    "&quot;",
    "&#xA;"
    }
    )
    )

    For ri!inputStr, pass the value which contains the above special characters

Children
No Data