Just be aware that no validation is performed when directly accessing profile fields like this. If anyone enters HTML (such as script tags) into these fields it will be executed for anyone viewing the thread.
You can specify a regular expression to only allow specific types of input for your custom field. For example, this will only allow users to input letters, numbers, spaces, commas, and periods (including question/exclamation marks):
You can specify a regular expression to only allow specific types of input for your custom field. For example, this will only allow users to input letters, numbers, spaces, commas, and periods (including question/exclamation marks):
^[a-zA-Z0-9,.!? ]*$