tidy Questions
2
Solved
I'd like to use PHP Tidy to ensure my xml is valid before I load it into a DomDocument.
However, I don't want Tidy to change something to my formatting - I only want it to repair problems like unb...
Maxie asked 28/2, 2013 at 23:30
3
Solved
Can anyone think of a way (perhaps using a PowerShell script or similar) where I can look for *.cs files that are on disk in the folder structure, but aren't included in a project file?
This has c...
Creodont asked 18/2, 2009 at 13:27
2
Solved
Disclaimer: Please bare with the length of this question. This is a recurring question for a real world problem that I've seen asked
hundreds of times with no clear, working solution ever being
...
Naara asked 18/6, 2013 at 15:25
3
Solved
I am using php tidy to clean a user generated HTML page which contains a style tag :
<style type="text/css">
body {
padding-top: 60px;
padding-bottom: 40px;
}
</style>
But once I...
4
I am using tidy to clean up and format the output of HTML generated by the twig template engine.
I am using the following configuration for tidy:
$config = array('indent' => TRUE, 'output-html...
1
Solved
I need to load some arbitrary HTML into an existing DOMDocument tree. Previous answers suggest using DOMDocumentFragment and its appendXML method to handle this.
As @Owlvark indicates in the comme...
Metcalf asked 11/9, 2012 at 19:34
2
Solved
I'm using php's tidy library to "clean and repair" some html coming from user input.
Everything works fine, but i'm running into a problem that I can't figure out what its cause is. My code is lik...
1
Solved
The PHP tidy extension has a function ob_tidyhandlerDocs that works with PHP output bufferingDocs as a callback, e.g.:
ob_start('ob_tidyhandler');
I know that Tidy has a lot of configuration set...
Thief asked 24/7, 2012 at 10:44
2
Solved
I have a large chunk of HTML. In order for it to fit a certain container, I crop the HTML (not just the text) at, let’s say, 200 characters. Obviously, some of the tags will remain unclosed in this...
Metry asked 20/2, 2012 at 20:42
3
HTML Tidy has this infuriating habit of putting a newline before the closing tag. For example:
<p>Some text</p>
becomes
<p>Some text
</p>
How do I tell Tidy to keep th...
Norty asked 22/3, 2010 at 11:9
1
Solved
I am using Tidy (with PHP5) with UTF8 input, output, and char encoding enabled. When I clean a string with an &nbsp; in it, it is replacing it with an odd character. I've tried messing with the...
5
Solved
Here is a question that has been bugging me for a while, nowadays it's considered a good practice to indent HTML code but I've some reservations indenting code in a MVC pattern, here is a (si...
Vigilante asked 20/2, 2010 at 13:42
2
Solved
The tidy gem is no longer maintained and has multiple memory leak issues.
Some people suggested using Nokogiri.
I'm currently cleaning the HTML using:
Nokogiri::HTML::DocumentFragment.parse(html...
6
Solved
Are there any editors or bundles available for MacOS X that support formatting of HTML5 documents? Tidy errors out on newer tags like canvas.
Wyler asked 22/1, 2011 at 20:29
1
im trying to html tidy my document
currently im' getting code like this though
<div class="ImageContainer">
<img width="740.953125" height="561" src="pages/channels_home.png" usemap="#...
4
Solved
Before publishing a site I have bloat of unused CSS styles. Is there any good tool to detect unused CSS classes, divs?
Related Questions:
Tool to identify unused css definitions
Are ...
1
Solved
I'm creating an email-based CMS with PHP, and I'm required to use Gmail as the email service. The script is insanely simple for now, and the only problem I'm having is dealing with Gmail's email sy...
Flashover asked 6/12, 2010 at 18:50
4
I'm currently using the RubyTidy Ruby bindings for HTML tidy to make sure HTML I receive is well-formed. Currently this library is the only thing holding me back from getting a Rails application on...
1
Solved
I wrote an extension in C++ that uses libtidy, and it runs perfectly under PHP when I compile PHP --with-tidy.
However, it would be nice to have the extension run on a vanilla PHP. When I try to u...
Materiality asked 5/6, 2010 at 19:18
1
Solved
I do like the SQL editor now bundled with Eclipse but I can't seem to find a way for it to format my code like eclipse will with my java.
Did I miss something, or does anybody have any alternativ...
Slowworm asked 12/2, 2010 at 19:46
3
Solved
I'm wanting a tool to tidy VBScript code. I'm looking for something to do the same job as perltidy for Perl, or astyle for C++ and Java code.
I've looked, but failed to find anything here or via G...
1
Solved
I have a class that generates some html (form elements and table elements), but this class returns all the html in one line.
So I am trying to use tidy to beautify the code (indent the code, put l...
1
Solved
How do I make it so that instead of indenting my elements by multiples of 2 spaces (when formatting without wrapping is selected), HTMLTidy indents them by multiples of tabs (4 spaces long but only...
Auction asked 29/7, 2009 at 14:56
5
Solved
I'm using PHP and libtidy to attempt to screen scrape what might possibly be the most horrendous and malformed use of HTML tables in history. The site closes few table, tr, td, font, or bold tags a...
Remy asked 9/4, 2009 at 1:54
3
Solved
I'm putting some page content (which has been run through Tidy, but doesn't need to be if this is a source of problems) into DOMDocument using DOMDocument::loadHTML.
It's coming up with various e...
Marillin asked 6/1, 2009 at 9:30
© 2022 - 2024 — McMap. All rights reserved.