I have this string:
String s="<div style='font: 12px arial, sans-serif;'><b>Menu:<<>></b></div>"
I want to change the <<>> to &lt;&lt;&gt;&gt; to get the output:
String s="<div style='font: 12px arial, sans-serif;'><b>Menu:&lt;&lt;&gt;&gt;</b></div>"
I have used regex once a while back to retrieve text from the tags but how is this possible? I need the correct output.
I aim for this to be for general-purpose HTML tags, not just the particular ones in this post.
<<>>into&lt;&lt;&gt;&gt;(which would actually render as<<) rather than<<>>?!