Html edits with limits to n-repeats