I am using Login.UpdateProfile to allow front end users to edit their profiles.
I would like to allow them to enter specific html tags in some fields, but I am having problems with this.
Using the following users
can enter html tags into the comment field.
[[!UpdateProfile?
&validate=`comment:allowTags`]]
However I would like to be able to limit what tags they can use and thought the following would work, but it does not.
[[!UpdateProfile?
&validate=`comment:stripTags=^strong^`]]
Any attempt to move the validation to the html of the form itself does not seem to work. ie:
<label for="comment">[[!%login.comment]]
<span class="error">[[+error.comment]]</span>
</label>
<input type="textarea" name="comment" id="comment" value="[[+comment:stripTags=`strong`]]" />
I am obviously doing something wrong, but can't figure out what! Any help would be appreciated.