• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

org.w3c.dom.Document - output without escaping markup

 
Rick Beaver
Ranch Hand
Posts: 464
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have HTML markup in a text node within an org.w3c.dom.Document and I need to write the content of that text node out to a file without it being escaped but every time I tranform it the html markup is escaped

Please can someone tell me how to do this?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are going to have to pre-treat the text so that when the escaping occurs it ends up back the way you want.
javax.util.regex.Pattern is your friend in this.
I did a whole bunch of this sort of thing but all I can remember is a lot of very very tedious testing.
Bill
 
Rick Beaver
Ranch Hand
Posts: 464
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bill

Thankyou for your advice.

I will check out the regex stuff. I appreciate you taking the time to answer.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic