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

Escaping of "<" characters into "&lt;" #31

Open
cluick opened this issue May 4, 2020 · 0 comments
Open

Escaping of "<" characters into "&lt;" #31

cluick opened this issue May 4, 2020 · 0 comments

Comments

@cluick
Copy link

cluick commented May 4, 2020

Dear all,
this is more a question than an issue... I have an application where users can enter HTML source code for formatting. Somtimes it happens that users enter a less-than character ("<") instead of the entity "&lt;" which leads to a damaged DOM and hidden content in some browsers. Is there a way to deal with such characters in JTidy?
Currently I´m using JTidy with the following settings:

Tidy tidy = new Tidy();
tidy.setPrintBodyOnly(true);
tidy.setRawOut(true);
tidy.setWraplen(0);
tidy.setOutputEncoding("UTF-8");
tidy.setQuiet(true);

Thank you and best regards,
Christof

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