This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Function to escape the html with specified whitelist tags & spl chars | |
@param htmlString string string to be escaped | |
@param tags string comma separated tag list to be unescaped | |
@param splChars string comma separated spl char list to be unescaped | |
@example | |
var exTags = 'b,p,strong, i'; | |
var exSplChars = '?,!'; | |
document.querySelector('#editor').innerHTML = safeHTML("<strong> Need</strong> tips? <i> Visit </i> <b> W3Schools! </b>", exTags, exSplChars); | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.AspNetCore.Mvc.Testing; | |
using System.Net; | |
using System.Threading.Tasks; | |
using Xunit; | |
using System.Net.Http; | |
using System.Collections.Generic; | |
using Newtonsoft.Json; | |
namespace Api.FunctionalTests | |
{ |