831
Views
1
Comments
Solved
[Text and HTML Processing] Sanitize unescaped HTML
Question
text-and-html-processing
Web icon
Forge asset by Leonardo Fernandes

Hi Leonardo,

I am displaying HTML from database and trying to sanitize it against malicious tags. I thought "Text and HTML Processing" was designed to handle that, but HtmlRemoveUnsafeTags is not exposed as a function. Is this functionality supported and if so how do I use it?

Thank you,
Michael


2017-08-07 17-19-16
Nuno Silva
Staff
Solution

Michael Portnoy wrote:

Hi Leonardo,

I am displaying HTML from database and trying to sanitize it against malicious tags. I thought "Text and HTML Processing" was designed to handle that, but HtmlRemoveUnsafeTags is not exposed as a function. Is this functionality supported and if so how do I use it?

Thank you,
Michael


Hello Michael,

You can use the Outsystems API to do that:

https://success.outsystems.com/Documentation/10/Reference/OutSystems_APIs/Sanitization_API#SanitizeHtml


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.