1

I have a problem with Tidy2.

I wanted to 'tidy up' my source code, that was okay but it makes an & to amp;. It advertise it.

Why and how can I change this?

2 Answers 2

1

If you check the online Tidy Documentation you will find how to set the ampersand settings:

quote-ampersand

Top Type: Boolean
Default: yes
Example: y/n, yes/no, t/f, true/false, 1/0
This option specifies if Tidy should output unadorned & characters as & amp;

Sign up to request clarification or add additional context in comments.

Comments

0

You need to edit the config file for Tidy2 (which is an option in the plugin menu).

To stop Tidy2 replacing all HTML entities (such as &), include the following line:

preserve-entities: 1

If you want to just change the ampersand handling, include

quote-ampersand: no

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.