Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

TidyMarkup

TidyMarkup is a DataFormat Data Format that uses the TagSoup to tidy up HTML. It can be used to parse ugly HTML and return it as pretty wellformed HTML.{

Tip

...

title

...

Camel eats our own -dog food- soap

...

We had some issues in our pdf Manual where we had some strange symbols. So Jonathan used this data format to tidy up the wiki html pages that are used as base for rendering the pdf manuals. And then the mysterious symbols vanished.

TidyMarkup only supports the unmarshal operation as we really don't want to turn well formed HTML into ugly HTML (smile)

Example

An example where the consumer provides some HTML

Code Block
java
java

from("file://site/inbox").unmarshal().tidyMarkup().

...

to("file://site/blogs");

Requirements

TidyMarkup is provided in the camel-tagsoup.jar so if you are using maven you can just depend on this artifactId camel-tagsoup.