I'm trying to print below line on html page:
List<Map<String,Object>> someVar = someMethod();
however, in html Map<String,Object>
is being treated as tag in html
Below is the output I'm getting:
List> someVar = someMethod();
everything else other than Map is being properly replaced by span tags
replace <
by <
and >
by >
List<Map<String,Object>> someVar = someMethod();
try inserting \\r right after the <
<script> document.write("List <\\rMap<\\rString,Object>> someVar = someMethod();"); </script>
the result I got was: List < Map< String,Object>> someVar = someMethod();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.