This question has been answered by vamporio. See the first response.
Did you try to use html entities before saving the data?
Do not know if it will work but you can give a try.
[[!FormIt? &validate=`comment:allowTags,myExtendedField:allowTags` ]]
[[!UpdateProfile? &validate=`comment:allowTags,myExtendedField:allowTags` ]]
[[!Register? &validate=`comment:allowTags,myExtendedField:allowTags` ]]
// check if uid is set in the post
if(isset($_POST['uid']) && !empty($_POST['uid'])){
// true: get the user-profile from the Updates-Snippet
$profile = $hook->getValue('updateprofile.profile');
}else{
// false: get the user-profile from the Register-Snippet
$profile = $hook->getValue('register.profile');
}
// get the extended fields from the profile
$extended = $profile->get('extended');
// example 1 - extended field
// if your special extended-html-field existed in the update-form
if(isset($_POST['myExtendedHTMLField'])){
// then replace the actual (stripped) value with the correct one
$extended['myExtendedHTMLField'] = $_POST['myExtendedHTMLField'];
}
// example 2 - another extended field to work with
if(isset($_POST['myExtendedHTMLField_2'])){
$extended['myExtendedHTMLField_2'] = $_POST['myExtendedHTMLField_2'];
}
// example 3 - standard-field (like adress, comment..)
// if your special-html-field is no extended field
if(isset($_POST['comment']) ){
// you can replace it like so
$profile->set('comment', $_POST['comment']);
}
// set all changed extended fields to the profile
$profile->set('extended', $extended);
// save all changes to the profile
$profile->save();