Home

Awesome

<p align="center"><img src="screenshots/screenshot.png"></p> <h2 align="center">HTML Cleaner for Anki</h2> <p align="center"> <a title="Latest (pre-)release" href="https://github.com/glutanimate/html-cleaner/releases"><img src ="https://img.shields.io/github/release-pre/glutanimate/html-cleaner.svg?colorB=brightgreen"></a> <a title="License: GNU AGPLv3" href="https://github.com/glutanimate/html-cleaner/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-GNU AGPLv3-green.svg"></a> <!--<a title="Rate on AnkiWeb" href="https://ankiweb.net/shared/info/ANKIWEB_ID"><img src="https://glutanimate.com/logos/ankiweb-rate.svg"></a>--> <br> <a title="Buy me a coffee :)" href="https://ko-fi.com/X8X0L4YV"><img src="https://img.shields.io/badge/ko--fi-contribute-%23579ebd.svg"></a> <a title="Support me on Patreon :D" href="https://www.patreon.com/bePatron?u=7522179"><img src="https://img.shields.io/badge/patreon-support-%23f96854.svg"></a> <a title="Follow me on Twitter" href="https://twitter.com/intent/user?screen_name=glutanimate"><img src="https://img.shields.io/twitter/follow/glutanimate.svg"></a> </p>

Annoying formatting be gone!

This is an add-on for the spaced-repetition flashcard app Anki that cleans and minifies the HTML content of the current field, removing extraneous tags and attributes copied over from apps like Word, Chrome, etc.

Table of Contents <!-- omit in toc -->

<!-- MarkdownTOC levels="1,2,3" --> <!-- /MarkdownTOC --> <!-- ### Screenshots ![](screenshots/screenshot.png) -->

Installation

AnkiWeb <!-- omit in toc -->

This section will be updated once the add-on is available on AnkiWeb.

<!-- The easiest way to install HTML Cleaner is through [AnkiWeb](https://ankiweb.net/shared/info/ANKIWEB_ID). -->

Manual installation <!-- omit in toc -->

Please click on the entry corresponding to your Anki version:

<details> <summary><i>Recent Anki 2.1 versions</i></summary> <br>

Note: These instructions only work on Anki 2.1.17 and up. For older Anki releases please see the next section.

<br>
  1. Download the latest .ankiaddon file from the releases tab (you might need to click on Assets below the description to reveal the download links)
  2. Open the folder where your downloads are located and double-click on the downloaded .ankiaddon file.
  3. Follow the installation prompt and restart Anki if it asks you to
</details> <details> <summary><i>Older Anki 2.1 versions</i></summary>
  1. Make sure you are using at least Anki 2.1.10. Earlier releases (e.g. found in various Linux distros) do not support .ankiaddon packages.
  2. Download the latest .ankiaddon package from the releases tab (you might need to click on Assets below the description to reveal the download links)
  3. From Anki's main window, head to ToolsAdd-ons
  4. Drag-and-drop the .ankiaddon package onto the add-ons list
  5. Restart Anki

Video summary:

<img src="https://raw.githubusercontent.com/glutanimate/docs/master/anki/add-ons/media/ankiaddon-installation-macos.gif" width=640> </details>

Documentation

For further information on the use of this add-on please check out the description text for AnkiWeb.

Building

With Anki add-on builder installed:

git clone https://github.com/glutanimate/html-cleaner.git
cd html-cleaner
aab build

For more information on the build process please refer to aab's documentation.

Contributing

Contributions are welcome! Please review the contribution guidelines on how to:

License and Credits

HTML Cleaner is

Copyright © 2016-2020 Aristotelis P. (Glutanimate)

Copyright © 2020 Arthur Milchior

Copyright © 2020 ijgnd

This add-on was developed on a commission by a fellow Anki user. All credit for the original idea goes to them.

My heartfelt thanks goes out to Arthur and ijgnd for their major contributions in bringing this add-on to Anki 2.1 and extending it with a plethora of new features. For a list of all significant contributors to this project and their contributions please also see CONTRIBUTORS.

This add-on would not not have been possible without the following open-source libraries:

HTML Cleaner is free and open-source software. The add-on code that runs within Anki is released under the GNU AGPLv3 license, extended by a number of additional terms. For more information please see the LICENSE file that accompanied this program.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY.


<b> <div align="center">The continued development of this add-on is made possible <br>thanks to my <a href="https://www.patreon.com/glutanimate">Patreon</a> and <a href="https://ko-fi.com/X8X0L4YV">Ko-Fi</a> supporters. <br>You guys rock ❤️ !</div> </b>