Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

217
Views
Is there a way to encode the HTML tags from getContent() method of TinyMCE?

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 &gt; 2 </p> , but is there a way to encode the paragraph tags too?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!