-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Conversation
HTML BeautifierDescription: HTML beautifier helps user to reformat the html code to have proper indentation of nested tags. Example Query: [beautify html](https://beta.duckduckgo.com/?q=beautify html), [reformat html](https://beta.duckduckgo.com/?q=reformat html), [cleanup html5 code](https://beta.duckduckgo.com/?q=cleanup html5 code) Tab Name: Answer Source: These are the important fields from the IA page. Please check these for errors or missing information and update the IA page This is an automated message which will be updated as changes are made to the IA page |
Nice work @akanshgulati! This is now on the beta server for testing and looking good: https://beta.duckduckgo.com/?q=beautify+html&ia=answer |
@tagawa It has a external library which needs to be uploaded first on DDG host. First, deploy the library there. |
$beautifyButton.text('Loading..'); | ||
|
||
// load the library | ||
$.getScript("https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.6.4/beautify-html.min.js").done(function(){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tagawa This is the library url, I am talking about.
@akanshgulati OK, I think this has to be done by @moollaza, similar to #3640 and #3635 |
974e7d4
to
59cac97
Compare
Thanks for the update @akanshgulati. |
Yup I have an internal PR that adds the libs to DDG.require. I will test it with this IA and then merge both 👍 |
@akanshgulati this is now live on beta. It looks like the beautifier isn't working very well though. It seems to only fix some indentation and doesn't remove empty newlines. Can this be configured further? |
@akanshgulati it seems to work better when you have |
@akanshgulati this is now merged! It should be live on DuckDuckGo within one week (or during the next release) and we'll be sure to notify you when it happens. After your Instant Answer goes live for the World to use, you will be able to see traffic information about your IA as well as receive feedback directly from users. Please refer to the maintenance guide and docs to keep up with potential changes to your Instant Answer. Thank you again for your help! |
HTML Beautifier
What changes does this PR introduce?
It will reformat the html code to have proper indentation for nested tags making it easier for user to read and debug code.
People to notify
@tagawa @moollaza
Instant Answer Page: https://duck.co/ia/view/html_beautifier