fix(ihm): Fix corruption of htmltext attributes with vis H or S (refs #4856)

Htmltext attributes with visibility H or S were corrupted on save when
they contained HTML special chars (like '<' and '>').
Merge pull request #1204 from eguaj/3.2-A4856

fix(ihm): Fix corruption of htmltext attributes with vis H or S (closes #4856)