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

185
Views
Dompurify converting "<" to "&lt;"

I am using DOMPurify to sanitize my HTML content. Everything works fine, but when I use the characters < and >, it is being converted to &lt; and &gt;

Eg: We have <a>Tea</a> // Outputs: We have Tea

Eg: Use '<' and '>' to compare values // Outputs: Use '&lt;' and '&gt;' to compare values

The issue is with second example. I want to show it as < instead of %lt;

So my only option is to perform a string replace after passing through DOMPurify to replace &lt; and &gt; with < and >. Is there any other option ?

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!