If you synchronize Notes with iCloud, open the iCloud preference pane and uncheck the box marked Notes. If you sync Notes with another mail service, disable that in the Internet Accounts or Mail, Contacts & Calendars preference pane. You may be warned that notes stored on the server will be deleted. If you trust your backups, confirm. Leave the window open.
Triple-click anywhere in the line below on this page to select it:
~/Library/Containers/com.apple.Notes
Right-click or control-click the highlighted line and select
Services ▹ Reveal in Finder (or just Reveal)
from the contextual menu.* A folder should open with an item named "com.apple.Notes" selected. Quit the application if it's running. Move the selected item to the Trash, then restore it from a backup that predates the unwanted change. If you back up with Time Machine, enter it and select the snapshot from which you want to restore.
Log out or restart and empty the Trash.
Re-enable synchronization in System Preferences, if you disabled it.
*If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination command-C. In the Finder, select
Go ▹ Go to Folder...
from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.