# 'Html code' notes and the NoteCleanup tool

**URL:** <https://gramps.discourse.group/t/html-code-notes-and-the-notecleanup-tool/1137>\
**Category:** Ideas\
**Created:** [January 21, 2021, 5:32am UTC](https://gramps.discourse.group/t/html-code-notes-and-the-notecleanup-tool/1137 "2021-01-21T05:32:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Researcher](https://avatars.discourse-cdn.com/v4/letter/r/edb3f5/32.png) [@Researcher](https://gramps.discourse.group/u/Researcher)\
**Post date:** [January 21, 2021, 5:32am UTC](https://gramps.discourse.group/t/html-code-notes-and-the-notecleanup-tool/1137/1 "2021-01-21T05:32:26Z")

</div>

I have been using the Note Cleanup tool for a while, mostly to tidy up URL links in my notes.

However it is easy to accidentally cleanup HTML that is meant to be in a note. In particular, the note type ‘HTML code’ is meant to have HTML in it. The unfortunate result of a cleanup is that table structures and other html is removed.

I wonder if the Note Cleanup tool can have an option to skip any notes of type ‘HTML code’. Or, perhaps it should always skip notes of type ‘HTML code’.

---

<div class="post-metadata">

**Author:** ![codefarmer](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@codefarmer](https://gramps.discourse.group/u/codefarmer)\
**Post date:** [January 24, 2021, 12:20am UTC](https://gramps.discourse.group/t/html-code-notes-and-the-notecleanup-tool/1137/2 "2021-01-24T00:20:58Z")

</div>

Agree with you that Note Cleanup Tool removing markup from a note  
explicitly marked ‘HTML code’ is not expected behavior. Consider filing  
an enhancement request, or even a bug on MantisBT.

Himanshu

---

<div class="post-metadata">

**Author:** ![Researcher](https://avatars.discourse-cdn.com/v4/letter/r/edb3f5/32.png) [@Researcher](https://gramps.discourse.group/u/Researcher)\
**Post date:** [January 24, 2021, 12:24am UTC](https://gramps.discourse.group/t/html-code-notes-and-the-notecleanup-tool/1137/3 "2021-01-24T00:24:33Z")

</div>

Yes. I have just submitted a feature request into Mantis.
