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

Format and indent HTML #431

Open
vanillajonathan opened this issue Mar 24, 2021 · 1 comment
Open

Format and indent HTML #431

vanillajonathan opened this issue Mar 24, 2021 · 1 comment
Assignees

Comments

@vanillajonathan
Copy link

There could be a feature to format and indent code.

var html = @"<!DOCTYPE html><html><body><h1>
This is <b>bold</b> heading</h1><p>This is <u>underlined</u> paragraph</p>
<h2>This is <i>italic</i> heading</h2></body></html>";

var htmlDoc = new HtmlDocument();
htmlDoc.LoadHtml(html);

To get this ugly HTML code beautifully outputted to:

<!DOCTYPE html>
<html>
<body>
  <h1>This is <b>bold</b> heading</h1>
  <p>This is <u>underlined</u> paragraph</p>
  <h2>This is <i>italic</i> heading</h2>
</body>
</html> 
@JonathanMagnan JonathanMagnan self-assigned this Mar 24, 2021
@JonathanMagnan
Copy link
Member

Thank you for this suggestion,

At this moment, we have no plan to implement something like this but this is indeed a good idea.

Best Regards,

Jon


Sponsorship
Help us improve this library

Performance Libraries
context.BulkInsert(list, options => options.BatchSize = 1000);
Entity Framework ExtensionsBulk OperationsDapper Plus

Runtime Evaluation
Eval.Execute("x + y", new {x = 1, y = 2}); // return 3
C# Eval FunctionSQL Eval Function

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

No branches or pull requests

2 participants