Turning the tide for tidy #3593
Replies: 2 comments
-
|
If you want to be constructive, please write some failing tests demonstrating specific behaviors that you want to see. What you've written here spans well-formedness, formatting, sanitization, and post-processing -- all of which could be a separate project. I would also suggest if you haven't to look at rgrove/sanitize which does a good job of providing a flexible API for sanitization; and flavorjones/loofah which provides an API for generic tree transformations. |
Beta Was this translation helpful? Give feedback.
-
|
Will check how the references fly. But does Nokogiri indent out of the box? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Sadly, the "granddaddy of HTML tools" seems to have retired to the old folks' home for good, with no commits or responses from maintainers going on three years.
Would thus like to explore how Nokogiri can transform street HTML to valid HTML5.
<!DOCTYPE>and<title>)Possibly also:
<script>,<iframe>,<img src>,url())base[href],link[href][rel=canonical])Already wrote much of this, but are some available OotB? (Can't get indentation to work for one.)
Beta Was this translation helpful? Give feedback.
All reactions