Atlassian interview question

JavaScript functions, validation, HTML security