Extend htmlSerializer to add additional params

What additional info would you like? Please could you give us some examples?