Use a single substitute character when inserting the wrapper so it isn't stripped.
Wire up the ability to edit or remove a selected gallery.
Remove debug statement.
Add note about needing unit tests.
Cleanup the look-and-feel a bit.