我需要使用基於vb.net的web服務中的oneignal向客戶端發送消息。這些消息像HTML標籤之間發送:<html><body>message<a href="...">link</a>text
,但每當我試圖通過一個信號發送它,我得到這個錯誤:我們如何發送onesignal中的html標籤?
System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client (pushMessage="message<a>link</a>text").
at System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection)
at System.Web.HttpRequest.ValidateHttpValueCollection(HttpValueCollection collection, RequestValidationSource requestCollection)
at System.Web.HttpRequest.get_Form()
at System.Web.Services.Protocols.HtmlFormParameterReader.Read(HttpRequest request)
at System.Web.Services.Protocols.HttpServerProtocol.ReadParameters()
at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()
有人能提出一個解決方案,通過onesignal發送HTML數據?