Do we have any Html decode function other than stripHtml? or any regex function to use ?
Example of My current String which I get from Portal and it will be saved in DB as
"I’m Appian resource. Any other existing–resource?"
If I use striphtml("I’m Appian resource. Any other existing–resource?")
I am getting same output -> "I’m Appian resource. Any other existing–resource?"
If I use
reduce( fn!substitute, striphtml(ri!displayName), merge({ "’", "–" }, { "'", "-" }) )
Then I will get proper result -> "I'm Appian resource. Any other existing-resource?"
But I can't predict only 2 html entity names. There are many, that I need to convert and display in a!paragraph field.
Discussion posts and replies are publicly visible
fromhtml()
fromHtml() is depricated, which will be replaced by stripHtml()