

Batch Remove Formatting (e.g. bold, italics, etc.)
<10kB. Updated 2018-09-25.
The author has shared 65 other
item(s).
Description
Download
As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.
Supported Anki versions:
- 2.1.0 (Updated 2018-09-25)
To download this add-on, please copy and paste the following code into Anki 2.1:
1734822644
If you were linked to this page from the internet, please open Anki on your computer, go to the Tools->Add-ons menu item, then click on Get Add-ons and paste in the code.
Reviews

works for me on Anki 2.1.39

There is no edit> batch remove whatsoever.

Does not work if to remove background color of field text.

would be nice if we could choose a specific field

Extremely helpful.

It is the kind of add-on I install, use once and uninstall. But it IS very useful when needed. Updated about 10 thousand cards in a few seconds. Did the job as expected.

Great add-on, find a lot of use. It would be even better if there was an option to remove formatting only for certain fields.

Works beautifully on Anki 2.1. Thanks Glutanimate!
The Anki 2.0 version did not work for me. Got a similar error message as reported below.
The Anki 2.0 version did not work for me. Got a similar error message as reported below.

I worked a treat for me. I'm running Anki 2.1 on an Ubuntu based Linux OS (Peppermint).
Had no issues with it.
Had no issues with it.

Didn't work for me either
An error occurred in an add-on.
Please post on the add-on forum:
https://anki.tenderapp.com/discussions/add-ons
Traceback (most recent call last):
File "C:\Users\Albert\AppData\Roaming\Anki2\addons\Batch_Remove_Formatting_eg_bold_italics_etc.py", line 76, in <lambda>
a.triggered.connect(lambda _, b=browser: onClearFormatting(b))
File "C:\Users\Albert\AppData\Roaming\Anki2\addons\Batch_Remove_Formatting_eg_bold_italics_etc.py", line 99, in onClearFormatting
note.fields = stripFormatting(note.fields)
File "C:\Users\Albert\AppData\Roaming\Anki2\addons\Batch_Remove_Formatting_eg_bold_italics_etc.py", line 60, in stripFormatting
soup = BeautifulSoup(html, "html.parser")
File "thirdparty\BeautifulSoup.py", line 1521, in __init__
File "thirdparty\BeautifulSoup.py", line 1146, in __init__
File "thirdparty\BeautifulSoup.py", line 1188, in _feed
File "sgmllib.py", line 104, in feed
File "sgmllib.py", line 138, in goahead
File "sgmllib.py", line 296, in parse_starttag
File "sgmllib.py", line 338, in finish_starttag
File "thirdparty\BeautifulSoup.py", line 1337, in unknown_starttag
File "thirdparty\BeautifulSoup.py", line 1250, in endData
AttributeError: 'unicode' object has no attribute 'text'
An error occurred in an add-on.
Please post on the add-on forum:
https://anki.tenderapp.com/discussions/add-ons
Traceback (most recent call last):
File "C:\Users\Albert\AppData\Roaming\Anki2\addons\Batch_Remove_Formatting_eg_bold_italics_etc.py", line 76, in <lambda>
a.triggered.connect(lambda _, b=browser: onClearFormatting(b))
File "C:\Users\Albert\AppData\Roaming\Anki2\addons\Batch_Remove_Formatting_eg_bold_italics_etc.py", line 99, in onClearFormatting
note.fields = stripFormatting(note.fields)
File "C:\Users\Albert\AppData\Roaming\Anki2\addons\Batch_Remove_Formatting_eg_bold_italics_etc.py", line 60, in stripFormatting
soup = BeautifulSoup(html, "html.parser")
File "thirdparty\BeautifulSoup.py", line 1521, in __init__
File "thirdparty\BeautifulSoup.py", line 1146, in __init__
File "thirdparty\BeautifulSoup.py", line 1188, in _feed
File "sgmllib.py", line 104, in feed
File "sgmllib.py", line 138, in goahead
File "sgmllib.py", line 296, in parse_starttag
File "sgmllib.py", line 338, in finish_starttag
File "thirdparty\BeautifulSoup.py", line 1337, in unknown_starttag
File "thirdparty\BeautifulSoup.py", line 1250, in endData
AttributeError: 'unicode' object has no attribute 'text'

I'm not sure about the issue the other reviewer had. I've had no problems with it using installed Anki 2.1 on macOS.

Worked great! Was able to customize the tags to be removed in the add-on file directly. Saved me a lot of time.

Not working. Throws this error:
An error occurred in an add-on.
Please post on the add-on forum:
https://anki.tenderapp.com/discussions/add-ons
Traceback (most recent call last):
File "D:\OSCAR\PortableApps\AnkiPortable\Data\ankidata\addons\Batch_Remove_Formatting_eg_bold_italics_etc.py", line 76, in <lambda>
a.triggered.connect(lambda _, b=browser: onClearFormatting(b))
File "D:\OSCAR\PortableApps\AnkiPortable\Data\ankidata\addons\Batch_Remove_Formatting_eg_bold_italics_etc.py", line 99, in onClearFormatting
note.fields = stripFormatting(note.fields)
File "D:\OSCAR\PortableApps\AnkiPortable\Data\ankidata\addons\Batch_Remove_Formatting_eg_bold_italics_etc.py", line 60, in stripFormatting
soup = BeautifulSoup(html, "html.parser")
File "thirdparty\BeautifulSoup.py", line 1521, in __init__
File "thirdparty\BeautifulSoup.py", line 1146, in __init__
File "thirdparty\BeautifulSoup.py", line 1188, in _feed
File "sgmllib.py", line 104, in feed
File "sgmllib.py", line 138, in goahead
File "sgmllib.py", line 296, in parse_starttag
File "sgmllib.py", line 338, in finish_starttag
File "thirdparty\BeautifulSoup.py", line 1343, in unknown_starttag
AttributeError: 'unicode' object has no attribute 'text'
An error occurred in an add-on.
Please post on the add-on forum:
https://anki.tenderapp.com/discussions/add-ons
Traceback (most recent call last):
File "D:\OSCAR\PortableApps\AnkiPortable\Data\ankidata\addons\Batch_Remove_Formatting_eg_bold_italics_etc.py", line 76, in <lambda>
a.triggered.connect(lambda _, b=browser: onClearFormatting(b))
File "D:\OSCAR\PortableApps\AnkiPortable\Data\ankidata\addons\Batch_Remove_Formatting_eg_bold_italics_etc.py", line 99, in onClearFormatting
note.fields = stripFormatting(note.fields)
File "D:\OSCAR\PortableApps\AnkiPortable\Data\ankidata\addons\Batch_Remove_Formatting_eg_bold_italics_etc.py", line 60, in stripFormatting
soup = BeautifulSoup(html, "html.parser")
File "thirdparty\BeautifulSoup.py", line 1521, in __init__
File "thirdparty\BeautifulSoup.py", line 1146, in __init__
File "thirdparty\BeautifulSoup.py", line 1188, in _feed
File "sgmllib.py", line 104, in feed
File "sgmllib.py", line 138, in goahead
File "sgmllib.py", line 296, in parse_starttag
File "sgmllib.py", line 338, in finish_starttag
File "thirdparty\BeautifulSoup.py", line 1343, in unknown_starttag
AttributeError: 'unicode' object has no attribute 'text'
Comment from author
Hi. Sorry to hear that. Would you mind posting a bug report here?: https://github.com/glutanimate/anki-addons-misc/issues/new
If you could fill out the info asked for in the bug report template, that would be very helpful also. This is the first report I have of an error like this, so any additional info you can provide would expedite the bug fixing process.
If you could fill out the info asked for in the bug report template, that would be very helpful also. This is the first report I have of an error like this, so any additional info you can provide would expedite the bug fixing process.