lib.xp.examples.portal.sanitizeHtml.js Maven / Gradle / Ivy
var portalLib = require('/lib/xp/portal');
var assert = require('/lib/xp/testing');
// BEGIN
var unsafeHtml = '' +
'';
var sanitizedHtml = portalLib.sanitizeHtml(unsafeHtml);
// END
// BEGIN
// Sanitized HTML returned.
var expectedHtml = '';
// END
assert.assertEquals(expectedHtml, sanitizedHtml);