HTML Tidy is an html formatter used to pretty print existing markup.
Questions tagged [htmltidy]
168 questions
0
votes
1 answer
PHP/HTML Tidy: anchor-as-name = no doesn't seem to work?
I'm using PHP Tidy as an included script, and while it seems to mostly (if imperfectly) work, it doesn't seem to work to remove the name attributes from my tags. I've tried everything to remove them, including removing them using PHP Simple HTML DOM…

Erika S
- 11
- 3
0
votes
2 answers
How do I stop HTML Tidy from removing my closing tag?
Currently HTML Tidy is changing any empty HTML tag and combining them into one, for example:
Turns into:
This is a problem because including javascript files in the "head" of my…

sebastiaan
- 5,870
- 5
- 38
- 68
0
votes
2 answers
Html Tidy with php code, XHTML is not valid XML afterwards
I'm using http://tidy.sourceforge.net/ to convert HTML to XHTML and I want to transform this XHTML later with XSLT.
Unfortunately I tried a to parse a techcrunch site (just for testing). The techcrunch site contains php code and HTML tidy produces a…

therealmarv
- 3,692
- 4
- 24
- 42
0
votes
2 answers
Proper Way to Escape the | Character Using HTML Entities
To escape the ampersand character in HTML, I use the & HTML entity, for example:
Link
If I have the following code in my HTML, how would I escape the | character?

GTS Joe
- 3,612
- 12
- 52
- 94
0
votes
1 answer
`-:55: HTML parser error : htmlParseEntityRef: expecting ';'`: clean up HTML file with xmllint?
http://journals.im.ac.cn/cjbcn/ch/reader/view_abstract.aspx?file_no=gc19010159&flag=1
I'd like to clean up the file from the above URL. But xmllint gives the following error. Does anybody know how to fix the problem? Thanks.
$ xmllint -html -xmlout…

user1424739
- 11,937
- 17
- 63
- 152
0
votes
0 answers
How to run HTML Tidy so that it fixes the issues in HTML that makes it non-well-formed, not just report issues?
I have HTML that was generated from a formatted Outlook email message.
I want to convert the HTML to XHTML.
I ran HTML Tidy using the -asxhtml (convert HTML to well-formed XHTML) option.
HTML reported many errors, including:
line 1 column 320 -…

Roger Costello
- 3,007
- 1
- 22
- 43
0
votes
1 answer
DLL not found error after publishing in VS2015 — tidy.x64.dll
I have an issue I struggle with since days. I nearly tried everything i am able to try but had no success. Not to hide, I am not an C# expert but I use to learn.
I use TidyHTML in a project to correct some corrupt html from an editor. The software…

rogras
- 21
- 5
0
votes
1 answer
How to make tidy (libtidy5) format html with inline elements treated as block elements
The new tidy (libtidy5) is great, but i can't figure out to reformat an html file with every tag on a newline so, also inline tags.
This is standard output:
echo "
HiTom
" | tidy -i
Janghou
- 1,613
- 1
- 21
- 30
0
votes
2 answers
Using TouchXML with HTML Tidy
I am trying to set up TouchXML in my iPhone app to parse HTML from a website, but unfortunately the website's HTML isn't valid XML. I'd like to use HTML tidy to tidy it up, and in fact TouchXML has a setting, TOUCHXMLUSETIDY, which when turned on in…

Jason
- 14,517
- 25
- 92
- 153
0
votes
1 answer
Sublime Linter / htmltidy not working after Mojave update
HTML linting in Sublime has stopped working since I installed Mojave.
I use an older version of SublimeLinter and SublimeLinter-html-tidy as the ignore_match function is useful for hiding 'false positives' when developing emails.
Going by the…

user9891601
- 101
- 1
- 1
- 3
0
votes
1 answer
Weird Characters on Webpage after HTML Tidy
I'm getting content via Amazon Web Services (e.g. product descriptions). Since the content from Amazon is often marked up very poorly, it ends up messing up the layout of my web pages. So, I have come up with a function to "sanitize" the content…

StackOverflowNewbie
- 39,403
- 111
- 277
- 441
0
votes
2 answers
How to avoid dupliucate anchors XHTML?
I did a page and did a check on it using a software called WebKing and it tells me I have duplicate anchors??
0
votes
1 answer
Can't figure out how to invoke html5Tidy from Python 3
For Python 3.5.
Can someone please point me to some documentation for using html5tidy with Python 3? I'm amazed that multiple searches don't return anything.
In Python 3, the documentation in html5tidy.py states:
"""
HTML5Tidy
=========
Simple…

RBV
- 1,367
- 1
- 14
- 33
0
votes
1 answer
HTML Tidy command-line syntax?
Why doesn't this work with HTML Tidy?
tidy index.html --uppercase-attributes yes
(I got the list of available config options from tidy -help-config command.)
If I put invalid option there, I get an error, which is good. But if I put a correct…

Robo Robok
- 21,132
- 17
- 68
- 126
0
votes
1 answer
HTML tidy output option not working
The command line output option in HTML tidy does not work. I run "tidy" in a command line window. The code runs and outputs formatted HTML code to the screen then, stops (hangs) at the line and does not go further.
tidy infile -o…

givonz
- 187
- 9