On Jan 18, 10:49 am, Akash Gupta <akash.b...@gmail.com> wrote: > How do i use characters like "<" or ">" as browser considers text > after/before them as a tag and messes up the whole thing . > Some methods to encode/decode them are there or we need to do something else > (like replaceall ) .
It depends on the context... - if you're trying to setInnerHTML, then use setInnerText instead - otherwise, just replaceAll("&", "&").replaceAll("<", "<") (no need to replace ">" when "<" are properly output as "<")
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.