refactored the format striping to actually just traverse the dom instead of doing regex foo, far more efficient and sane