I am using DOMPurify to sanitize my HTML content. Everything works fine, but when I use the characters < and >, it is being converted to < and >
Eg: We have <a>Tea</a> // Outputs: We have Tea
Eg: Use '<' and '>' to compare values // Outputs: Use '<' and '>' 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 < and > with < and >. Is there any other option ?