My team is using TinyMCE editor v5.8.2 in one of our projects written in AngularJS, and the content that we get from this editor using the getContent() method is then passed as request to a HTTP POST method API.
The problem is that when the web application firewall scans the request body of this API, it triggers the XSS rule and doesn't let the API through because of < and > characters from the paragraph and other html tags.
TinyMCE does encode these characters when they are added within the html tags, for example <p> 3 > 2 </p> gets encoded to <p> 3 > 2 </p> , but is there a way to encode the paragraph tags too?