Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escape more ampersands #1079

Open
jidanni opened this issue Mar 23, 2023 · 0 comments
Open

Escape more ampersands #1079

jidanni opened this issue Mar 23, 2023 · 0 comments

Comments

@jidanni
Copy link
Contributor

jidanni commented Mar 23, 2023

Tidy should escape both ampersands, not just one.

$ echo '<P>x& &x'|tidy -q|grep x
line 1 column 7 - Warning: unescaped & or unknown entity "&x"
"HTML Tidy for HTML5 for Linux version 5.6.0">
<p>x& &amp;x</p>

Well, at least it leaves it alone after one fixes it by hand, and
doesn't make it back to unadorned.

So

--quote-ampersand Boolean (yes if unset)
This option specifies if Tidy should output unadorned &
characters as &amp;.

isn't telling the whole story.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant