MAIN-1879: Sanitize element attributes for forms

Sanitize attribute values for WikiaStyleguideForm, @themech  @nandy-andy can you take a look please