use html/atom package instead of raw strings

this will have a slight performance improvement by saving a few allocs.
In this particular case it likely won't be that noticeable.