Handling links as URLs if they have knonw protocols
Use startsWith for probably better code
Fix note-content instead of div
Apparently those last commas really matter
Use the right function name
Check for the attribute's existance before clearing it