Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Standard convention for stripping linefeeds in a NodeValue?

 
Ben Ethridge
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, all.

Is there a standard way of stripping linefeeds and tabs "\n\t" from the DOM NodeValue, so that the NodeValue contains just the "real" (i.e. human-readable) text?.

Obviously one can do it with simple string manipulation, but I was wondering if there were standard conventions or some such these days, since it seems like it would be such a common problem.

Ben
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic