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

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

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